summaryrefslogtreecommitdiff
path: root/qmafwwatchlet/qmafwwatchlet.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-05 01:55:41 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-05 01:55:41 +0200
commit49c64104c0750857858504b512955d9cc31e5c42 (patch)
tree1a74e10cf42f0f08b1af64e8470825e8e1c8ea41 /qmafwwatchlet/qmafwwatchlet.cpp
parent24c7c2f6f1429103d922ef940c0e17a3d4778059 (diff)
downloadsowatch-49c64104c0750857858504b512955d9cc31e5c42.tar.gz
sowatch-49c64104c0750857858504b512955d9cc31e5c42.zip
update the rest of the watchlets
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"));
}