summaryrefslogtreecommitdiff
path: root/qmapwatchlet/compasswatchlet.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-19 17:49:36 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-19 17:49:36 +0200
commit0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e (patch)
treee0033617bfbc158de0eae4700963af976b686d50 /qmapwatchlet/compasswatchlet.cpp
parentc64d7392c2e2ae51547788252e8c83ce5480fe49 (diff)
downloadsowatch-0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e.tar.gz
sowatch-0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e.zip
preparing new compass watchlet
Diffstat (limited to 'qmapwatchlet/compasswatchlet.cpp')
-rw-r--r--qmapwatchlet/compasswatchlet.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/qmapwatchlet/compasswatchlet.cpp b/qmapwatchlet/compasswatchlet.cpp
new file mode 100644
index 0000000..3101955
--- /dev/null
+++ b/qmapwatchlet/compasswatchlet.cpp
@@ -0,0 +1,11 @@
+#include "tripwatchlet.h"
+
+using namespace sowatch;
+
+const QLatin1String TripWatchlet::myId("com.javispedro.sowatch.trip");
+
+TripWatchlet::TripWatchlet(WatchServer* server) :
+ DeclarativeWatchlet(server, myId)
+{
+ setSource(QUrl(SOWATCH_QML_DIR "/qmapwatchlet/trip-" + server->watch()->model() + ".qml"));
+}