Changeset View
Changeset View
Standalone View
Standalone View
gui/SensorDisplayLib/MultiMeter.h
Show All 28 Lines | |||||
29 | class QLCDNumber; | 29 | class QLCDNumber; | ||
30 | 30 | | |||
31 | class MultiMeter : public KSGRD::SensorDisplay | 31 | class MultiMeter : public KSGRD::SensorDisplay | ||
32 | { | 32 | { | ||
33 | Q_OBJECT | 33 | Q_OBJECT | ||
34 | 34 | | |||
35 | public: | 35 | public: | ||
36 | MultiMeter(QWidget* parent, const QString& title, SharedSettings *workSheetSettings); | 36 | MultiMeter(QWidget* parent, const QString& title, SharedSettings *workSheetSettings); | ||
37 | ~MultiMeter() Q_DECL_OVERRIDE | 37 | ~MultiMeter() override | ||
38 | { | 38 | { | ||
39 | } | 39 | } | ||
40 | 40 | | |||
41 | bool addSensor(const QString& hostName, const QString& sensorName, | 41 | bool addSensor(const QString& hostName, const QString& sensorName, | ||
42 | const QString& sensorType, const QString& sensorDescr) Q_DECL_OVERRIDE; | 42 | const QString& sensorType, const QString& sensorDescr) override; | ||
43 | void answerReceived(int id, const QList<QByteArray>& answerlist) Q_DECL_OVERRIDE; | 43 | void answerReceived(int id, const QList<QByteArray>& answerlist) override; | ||
44 | bool restoreSettings(QDomElement& element) Q_DECL_OVERRIDE; | 44 | bool restoreSettings(QDomElement& element) override; | ||
45 | bool saveSettings(QDomDocument& doc, QDomElement& element) Q_DECL_OVERRIDE; | 45 | bool saveSettings(QDomDocument& doc, QDomElement& element) override; | ||
46 | 46 | | |||
47 | bool hasSettingsDialog() const Q_DECL_OVERRIDE | 47 | bool hasSettingsDialog() const override | ||
48 | { | 48 | { | ||
49 | return true; | 49 | return true; | ||
50 | } | 50 | } | ||
51 | 51 | | |||
52 | void configureSettings() Q_DECL_OVERRIDE; | 52 | void configureSettings() override; | ||
53 | 53 | | |||
54 | public Q_SLOTS: | 54 | public Q_SLOTS: | ||
55 | void applyStyle() Q_DECL_OVERRIDE; | 55 | void applyStyle() override; | ||
56 | 56 | | |||
57 | private: | 57 | private: | ||
58 | void setDigitColor(const QColor&); | 58 | void setDigitColor(const QColor&); | ||
59 | void setBackgroundColor(const QColor&); | 59 | void setBackgroundColor(const QColor&); | ||
60 | 60 | | |||
61 | QLCDNumber* mLcd; | 61 | QLCDNumber* mLcd; | ||
62 | QColor mNormalDigitColor; | 62 | QColor mNormalDigitColor; | ||
63 | QColor mAlarmDigitColor; | 63 | QColor mAlarmDigitColor; | ||
Show All 11 Lines |