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