diff options
Diffstat (limited to 'libsowatch')
-rw-r--r-- | libsowatch/declarativewatchlet.cpp | 9 | ||||
-rw-r--r-- | libsowatch/declarativewatchlet.h | 3 |
2 files changed, 3 insertions, 9 deletions
diff --git a/libsowatch/declarativewatchlet.cpp b/libsowatch/declarativewatchlet.cpp index ed6ec26..3647575 100644 --- a/libsowatch/declarativewatchlet.cpp +++ b/libsowatch/declarativewatchlet.cpp @@ -84,14 +84,9 @@ void DeclarativeWatchlet::setSource(const QUrl &url) } } -QDeclarativeEngine* DeclarativeWatchlet::engine() +QDeclarativeContext* DeclarativeWatchlet::context() { - return _engine; -} - -QDeclarativeContext* DeclarativeWatchlet::rootContext() -{ - return _engine->rootContext(); + return _context; } QDeclarativeItem* DeclarativeWatchlet::rootObject() diff --git a/libsowatch/declarativewatchlet.h b/libsowatch/declarativewatchlet.h index 6433880..cf2fd39 100644 --- a/libsowatch/declarativewatchlet.h +++ b/libsowatch/declarativewatchlet.h @@ -22,8 +22,7 @@ public: void setSource(const QUrl& url); - QDeclarativeEngine* engine(); - QDeclarativeContext* rootContext(); + QDeclarativeContext* context(); QDeclarativeItem* rootObject(); void activate(); |