summaryrefslogtreecommitdiff
path: root/qmafwwatchlet/qmafwwatchlet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmafwwatchlet/qmafwwatchlet.cpp')
-rw-r--r--qmafwwatchlet/qmafwwatchlet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qmafwwatchlet/qmafwwatchlet.cpp b/qmafwwatchlet/qmafwwatchlet.cpp
index 84c5ea9..41cea2a 100644
--- a/qmafwwatchlet/qmafwwatchlet.cpp
+++ b/qmafwwatchlet/qmafwwatchlet.cpp
@@ -6,7 +6,7 @@
using namespace sowatch;
-QMafwWatchlet::QMafwWatchlet(WatchServer* server) :
+QMafwWatchlet::QMafwWatchlet(Watch* watch) :
DeclarativeWatchlet(server, "com.javispedro.sowatch.qmafw"),
_registry(MafwRegistry::instance()),
_player(new QMafwWatchletPlayer(this)),
@@ -22,8 +22,8 @@ QMafwWatchlet::QMafwWatchlet(WatchServer* server) :
connect(this, SIGNAL(activated()), _player, SLOT(activate()));
connect(this, SIGNAL(deactivated()), _player, SLOT(deactivate()));
- rootContext()->setContextProperty("player", _player);
- rootContext()->setContextProperty("volumeControl", _volumeControl);
+ context()->setContextProperty("player", _player);
+ context()->setContextProperty("volumeControl", _volumeControl);
setSource(QUrl(SOWATCH_QML_DIR "/qmafwwatchlet/" + server->watch()->model() + ".qml"));
}