mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-26 12:09:56 +00:00
refactor: refresh aw plugin
This commit is contained in:
@ -47,22 +47,22 @@ private:
|
||||
// ui
|
||||
QGraphicsScene *m_toolTipScene = nullptr;
|
||||
QGraphicsView *m_toolTipView = nullptr;
|
||||
void checkValue(const QString &_source, float _value, float _extremum) const;
|
||||
void checkValue(const QString &_source, double _value, double _extremum) const;
|
||||
void checkValue(const QString &_source, const QString &_current, const QString &_received) const;
|
||||
void initScene();
|
||||
static QString notificationText(const QString &_source, float _value);
|
||||
static QString notificationText(const QString &_source, const QString &_value);
|
||||
// main method
|
||||
void setData(const QVariantHash &_values);
|
||||
void setData(const QString &_source, float _value, float _extremum = -1.0f);
|
||||
void setData(const QString &_source, double _value, double _extremum = -1.0);
|
||||
// different signature for battery device
|
||||
void setData(bool _dontInvert, const QString &_source, float _value);
|
||||
void setData(bool _dontInvert, const QString &_source, double _value);
|
||||
// variables
|
||||
int m_counts = 0;
|
||||
QVariantHash m_configuration;
|
||||
QString m_currentNetworkDevice = "lo";
|
||||
QHash<QString, float> m_boundaries;
|
||||
QHash<QString, QList<float>> m_values;
|
||||
QHash<QString, double> m_boundaries;
|
||||
QHash<QString, QList<double>> m_values;
|
||||
bool m_enablePopup = false;
|
||||
QStringList requiredKeys;
|
||||
QStringList m_requiredKeys;
|
||||
};
|
||||
|
Reference in New Issue
Block a user