mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-16 15:19:58 +00:00
add tests for battery and gpuload sources
+ some tests refactoring
This commit is contained in:
@ -28,13 +28,13 @@ class BatterySource : public AbstractExtSysMonSource
|
||||
public:
|
||||
explicit BatterySource(QObject *parent, const QStringList args);
|
||||
virtual ~BatterySource();
|
||||
QStringList getSources();
|
||||
QVariant data(QString source);
|
||||
QVariantMap initialData(QString source) const;
|
||||
void run();
|
||||
QStringList sources() const;
|
||||
|
||||
private:
|
||||
QStringList getSources();
|
||||
// configuration and values
|
||||
int m_batteriesCount = 0;
|
||||
QString m_acpiPath;
|
||||
|
Reference in New Issue
Block a user