From 0bb38d4e1b84a11e8fdfaae2e46b66c101fda40e Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 19 Aug 2012 17:49:36 +0200 Subject: preparing new compass watchlet --- qmapwatchlet/compasswatchlet.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 qmapwatchlet/compasswatchlet.cpp (limited to 'qmapwatchlet/compasswatchlet.cpp') 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")); +} -- cgit v1.2.3