v0.0.3
This commit is contained in:
parent
2b4f09bb49
commit
a934520cd9
1 changed files with 180 additions and 36 deletions
|
|
@ -17,6 +17,7 @@ class ConfigInterface : public QObject
|
|||
Q_PROPERTY(QString min READ min WRITE setMin NOTIFY minChanged FINAL)
|
||||
Q_PROPERTY(QString max READ max WRITE setMax NOTIFY maxChanged FINAL)
|
||||
Q_PROPERTY(QString alert READ alert WRITE setAlert NOTIFY alertChanged FINAL)
|
||||
Q_PROPERTY(bool flipBits READ flipBits WRITE setFlipBits NOTIFY flipBitsChanged FINAL)
|
||||
public:
|
||||
explicit ConfigInterface(QObject *parent = nullptr);
|
||||
QString alert() const;
|
||||
|
|
@ -28,18 +29,24 @@ public:
|
|||
QString min() const;
|
||||
void setMin(const QString &newMin);
|
||||
|
||||
bool flipBits() const;
|
||||
void setFlipBits(bool newFlipBits);
|
||||
|
||||
signals:
|
||||
void configData(QString max, QString min, QString alert);
|
||||
void configData(QString max, QString min, QString alert, bool flipbits);
|
||||
void alertChanged();
|
||||
void maxChanged();
|
||||
void minChanged();
|
||||
|
||||
void flipBitsChanged();
|
||||
|
||||
public slots:
|
||||
void saveConfig(QString max, QString min, QString alert);
|
||||
void saveConfig(QString max, QString min, QString alert, bool flipbits);
|
||||
private:
|
||||
QString m_alert;
|
||||
QString m_max;
|
||||
QString m_min;
|
||||
bool m_flipBits;
|
||||
};
|
||||
|
||||
#endif // CONFIGINTERFACE_H
|
||||
|
|
|
|||
Loading…
Reference in a new issue