mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-08-27 18:59:59 +00:00
add loadsource for testing needs
This commit is contained in:
@ -18,12 +18,14 @@
|
||||
#include "extsysmonaggregator.h"
|
||||
|
||||
#include "awdebug.h"
|
||||
#include "version.h"
|
||||
#include "sources/batterysource.h"
|
||||
#include "sources/customsource.h"
|
||||
#include "sources/desktopsource.h"
|
||||
#include "sources/gpuloadsource.h"
|
||||
#include "sources/gputempsource.h"
|
||||
#include "sources/hddtempsource.h"
|
||||
#include "sources/loadsource.h"
|
||||
#include "sources/networksource.h"
|
||||
#include "sources/playersource.h"
|
||||
#include "sources/processessource.h"
|
||||
@ -152,4 +154,10 @@ void ExtSysMonAggregator::init(const QHash<QString, QString> config)
|
||||
AbstractExtSysMonSource *weatherItem = new WeatherSource(this, QStringList());
|
||||
foreach(QString source, weatherItem->sources())
|
||||
m_map[source] = weatherItem;
|
||||
#ifdef BUILD_TEST
|
||||
// additional load source
|
||||
AbstractExtSysMonSource *loadItem = new LoadSource(this, QStringList());
|
||||
foreach(QString source, loadItem->sources())
|
||||
m_map[source] = loadItem;
|
||||
#endif /* BUILD_TEST */
|
||||
}
|
||||
|
Reference in New Issue
Block a user