1234567891011121314151617181920212223242526 |
- #ifndef CONNECTIONINDICATOR_H
- #define CONNECTIONINDICATOR_H
- #include <QLabel>
- class ConnectionIndicator : public QLabel
- {
- Q_OBJECT
- public:
- explicit ConnectionIndicator(QWidget *parent = nullptr);
- enum State{
- StateConnected,
- StateOkBlue,
- StateWarning,
- StateDisconnected
- };
- void setState(bool state);
- void setState(State state);
- signals:
- };
- #endif // CONNECTIONINDICATOR_H
|