summaryrefslogtreecommitdiff
path: root/qmapwatchlet/qmapwatchlet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qmapwatchlet/qmapwatchlet.cpp')
-rw-r--r--qmapwatchlet/qmapwatchlet.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/qmapwatchlet/qmapwatchlet.cpp b/qmapwatchlet/qmapwatchlet.cpp
new file mode 100644
index 0000000..c77ede4
--- /dev/null
+++ b/qmapwatchlet/qmapwatchlet.cpp
@@ -0,0 +1,11 @@
+#include "qmapwatchlet.h"
+
+using namespace sowatch;
+
+QMapWatchlet::QMapWatchlet(WatchServer* server) :
+ DeclarativeWatchlet(server, "com.javispedro.sowatch.map")
+{
+
+ setSource(QUrl("qrc:/qmapwatchlet/" + server->watch()->model() + ".qml"));
+}
+