summaryrefslogtreecommitdiff
path: root/qmapwatchlet/qmapwatchlet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmapwatchlet/qmapwatchlet.cpp')
-rw-r--r--qmapwatchlet/qmapwatchlet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qmapwatchlet/qmapwatchlet.cpp b/qmapwatchlet/qmapwatchlet.cpp
index d262c2c..28fa6fa 100644
--- a/qmapwatchlet/qmapwatchlet.cpp
+++ b/qmapwatchlet/qmapwatchlet.cpp
@@ -4,9 +4,9 @@ using namespace sowatch;
const QLatin1String QMapWatchlet::myId("com.javispedro.sowatch.qmap");
-QMapWatchlet::QMapWatchlet(WatchServer* server) :
- DeclarativeWatchlet(server, myId)
+QMapWatchlet::QMapWatchlet(Watch* watch) :
+ DeclarativeWatchlet(watch, myId)
{
setFullUpdateMode(true);
- setSource(QUrl(SOWATCH_QML_DIR "/qmapwatchlet/map-" + server->watch()->model() + ".qml"));
+ setSource(QUrl(SOWATCH_QML_DIR "/qmapwatchlet/map-" + watch->model() + ".qml"));
}