diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-09-04 03:27:30 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-09-04 03:27:30 +0200 |
commit | 4e10566c9b0c4fb723ad68e44ae4c231e6959323 (patch) | |
tree | 6f8aaa80a481b08e7827750e40b1c923ffc29046 /qmafwwatchlet/qmafwwatchlet.cpp | |
parent | 2f631362b54180252d0daa34f359338860a8782b (diff) | |
download | sowatch-4e10566c9b0c4fb723ad68e44ae4c231e6959323.tar.gz sowatch-4e10566c9b0c4fb723ad68e44ae4c231e6959323.zip |
improve media player's watchlet volume change
Diffstat (limited to 'qmafwwatchlet/qmafwwatchlet.cpp')
-rw-r--r-- | qmafwwatchlet/qmafwwatchlet.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qmafwwatchlet/qmafwwatchlet.cpp b/qmafwwatchlet/qmafwwatchlet.cpp index fb537a6..84c5ea9 100644 --- a/qmafwwatchlet/qmafwwatchlet.cpp +++ b/qmafwwatchlet/qmafwwatchlet.cpp @@ -1,6 +1,7 @@ #include <MafwShared.h> #include "qmafwwatchletplayer.h" +#include "qmafwwatchletvolumecontrol.h" #include "qmafwwatchlet.h" using namespace sowatch; @@ -8,7 +9,8 @@ using namespace sowatch; QMafwWatchlet::QMafwWatchlet(WatchServer* server) : DeclarativeWatchlet(server, "com.javispedro.sowatch.qmafw"), _registry(MafwRegistry::instance()), - _player(new QMafwWatchletPlayer(this)) + _player(new QMafwWatchletPlayer(this)), + _volumeControl(new QMafwWatchletVolumeControl(this)) { MafwShared* shared = MafwShared::instance(); @@ -21,6 +23,7 @@ QMafwWatchlet::QMafwWatchlet(WatchServer* server) : connect(this, SIGNAL(deactivated()), _player, SLOT(deactivate())); rootContext()->setContextProperty("player", _player); + rootContext()->setContextProperty("volumeControl", _volumeControl); setSource(QUrl(SOWATCH_QML_DIR "/qmafwwatchlet/" + server->watch()->model() + ".qml")); } |