kopia lustrzana https://gitlab.com/eliggett/wfview
28 wiersze
379 B
C++
28 wiersze
379 B
C++
#ifndef QLEDLABEL_H
|
|
#define QLEDLABEL_H
|
|
|
|
#include <QLabel>
|
|
|
|
class QLedLabel : public QLabel
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit QLedLabel(QWidget* parent = 0);
|
|
|
|
enum State {
|
|
StateOk,
|
|
StateOkBlue,
|
|
StateWarning,
|
|
StateError
|
|
};
|
|
|
|
|
|
signals:
|
|
|
|
public slots:
|
|
void setState(State state);
|
|
void setState(bool state);
|
|
};
|
|
|
|
#endif // QLEDLABEL_H
|