summaryrefslogtreecommitdiff
path: root/metawatchwatchlets/metawatch-digital-watchface.qml
diff options
context:
space:
mode:
Diffstat (limited to 'metawatchwatchlets/metawatch-digital-watchface.qml')
-rw-r--r--metawatchwatchlets/metawatch-digital-watchface.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/metawatchwatchlets/metawatch-digital-watchface.qml b/metawatchwatchlets/metawatch-digital-watchface.qml
new file mode 100644
index 0000000..712dbeb
--- /dev/null
+++ b/metawatchwatchlets/metawatch-digital-watchface.qml
@@ -0,0 +1,18 @@
+import QtQuick 1.0
+import com.javispedro.sowatch.metawatch 1.0
+
+MWPage {
+ // Remember that firmware draws top 30 lines
+
+ Connections {
+ target: watch
+ onActiveChanged: {
+ console.log("watchface is now " + (watch.active ? "active" : "inactive"))
+ }
+ }
+
+ MWLabel {
+ anchors.centerIn: parent
+ text: "This is a test"
+ }
+}