summaryrefslogtreecommitdiff
path: root/metawatch/metawatchfacewatchlet.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-05 02:21:29 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-05 02:21:29 +0200
commit12d61ddf50f5f34cafd25d7cbdc827156cfb184c (patch)
treebe975c0ba828c8322230b0146e1eb4fa30133127 /metawatch/metawatchfacewatchlet.cpp
parent49c64104c0750857858504b512955d9cc31e5c42 (diff)
downloadsowatch-12d61ddf50f5f34cafd25d7cbdc827156cfb184c.tar.gz
sowatch-12d61ddf50f5f34cafd25d7cbdc827156cfb184c.zip
preparing face watchlet support
Diffstat (limited to 'metawatch/metawatchfacewatchlet.cpp')
-rw-r--r--metawatch/metawatchfacewatchlet.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/metawatch/metawatchfacewatchlet.cpp b/metawatch/metawatchfacewatchlet.cpp
new file mode 100644
index 0000000..7e18988
--- /dev/null
+++ b/metawatch/metawatchfacewatchlet.cpp
@@ -0,0 +1,9 @@
+#include "metawatchfacewatchlet.h"
+
+using namespace sowatch;
+
+MetaWatchFaceWatchlet::MetaWatchFaceWatchlet(Watch *watch) :
+ DeclarativeWatchlet(watch, "com.javispedro.sowatch.metawatch.watchface")
+{
+ setSource(QUrl(SOWATCH_QML_DIR "/metawatch/" + watch->model() + "-watchface.qml"));
+}