From 0a656b75f3fc80f13424db0e7ec403dff28a366e Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sun, 2 Oct 2011 16:39:40 +0200 Subject: new notifications list, time syncing --- notificationswatchlet/metawatch-digital.qml | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 notificationswatchlet/metawatch-digital.qml (limited to 'notificationswatchlet/metawatch-digital.qml') diff --git a/notificationswatchlet/metawatch-digital.qml b/notificationswatchlet/metawatch-digital.qml new file mode 100644 index 0000000..4a69a0d --- /dev/null +++ b/notificationswatchlet/metawatch-digital.qml @@ -0,0 +1,39 @@ +import QtQuick 1.0 +import QtMobility.location 1.2 + +Rectangle { + width: 96 + height: 96 + + color: "white" + + ListView { + id: notifs + anchors.fill: parent + model: watch.notifications + delegate: Column { + Text { text: model.modelData.title } + Text { text: model.modelData.body } + } + visible: count > 0; + } + Text { + anchors.fill: parent + text: "No notifications" + visible: notifs.count == 0; + } + + Connections { + target: watch + onButtonPressed : { + switch(button) { + case 1: + notifs.decrementCurrentIndex(); + break; + case 2: + notifs.incrementCurrentIndex(); + break; + } + } + } +} -- cgit v1.2.3