diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-05 00:21:21 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-05 00:21:21 +0200 |
commit | ea5123cb6b30d5ab083ee3821269537b1d31b9f0 (patch) | |
tree | 7f4fc9053b59788a0cfa75a0294b4d7dbfb03aa9 /libsowatch/declarativewatchlet.h | |
parent | 7a284b847a98575f069b0f2d79fa8c905c7a3c23 (diff) | |
download | sowatch-ea5123cb6b30d5ab083ee3821269537b1d31b9f0.tar.gz sowatch-ea5123cb6b30d5ab083ee3821269537b1d31b9f0.zip |
reduce the number of qdeclarativeengine instances
Diffstat (limited to 'libsowatch/declarativewatchlet.h')
-rw-r--r-- | libsowatch/declarativewatchlet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libsowatch/declarativewatchlet.h b/libsowatch/declarativewatchlet.h index 087387a..28b16a8 100644 --- a/libsowatch/declarativewatchlet.h +++ b/libsowatch/declarativewatchlet.h @@ -17,7 +17,7 @@ class SOWATCH_EXPORT DeclarativeWatchlet : public GraphicsWatchlet { Q_OBJECT public: - explicit DeclarativeWatchlet(WatchServer* server, const QString& id); + DeclarativeWatchlet(WatchServer* server, const QString& id); ~DeclarativeWatchlet(); void setSource(const QUrl& url); @@ -35,6 +35,7 @@ private: static bool _registered; QDeclarativeEngine* _engine; + QDeclarativeContext *_context; QDeclarativeComponent* _component; QDeclarativeItem* _item; DeclarativeWatchWrapper* _wrapper; @@ -45,4 +46,6 @@ private slots: } +Q_DECLARE_METATYPE(QDeclarativeEngine*) + #endif // SOWATCH_DECLARATIVEWATCHLET_H |