* add Optimization build type which uses -O3

* create QTimer object in AWDataEngineAggregator class, emit signal to
  this timer because timers could not be started in the separate thread
* increase limit x2 with leaving the thread pool size as was
This commit is contained in:
arcan1s
2015-10-07 01:39:10 +03:00
parent 69c1f0ed5a
commit f7e24f680a
4 changed files with 24 additions and 7 deletions

View File

@ -23,6 +23,8 @@
#include <QObject>
class QTimer;
class AWDataEngineAggregator : public QObject
{
Q_OBJECT
@ -35,6 +37,7 @@ public:
void setInterval(const int _interval);
signals:
void startTimer();
void updateData(const QString sourceName, const QVariantMap sdata);
public slots:
@ -52,6 +55,7 @@ private:
void initDataEngines();
QHash<QString, Plasma::DataEngine *> m_dataEngines;
int m_interval;
QTimer *m_timer = nullptr;
};