mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-06 10:25:52 +00:00
* 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:
@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user