From 6003bf81107dd9be51589c074b74c5af82bfc8ab Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Tue, 7 May 2013 01:37:21 +0200 Subject: testing qml notifications --- metawatchwatchlets/metawatch-digital-watchface.qml | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'metawatchwatchlets/metawatch-digital-watchface.qml') diff --git a/metawatchwatchlets/metawatch-digital-watchface.qml b/metawatchwatchlets/metawatch-digital-watchface.qml index 23236a6..a030bdb 100644 --- a/metawatchwatchlets/metawatch-digital-watchface.qml +++ b/metawatchwatchlets/metawatch-digital-watchface.qml @@ -5,13 +5,6 @@ import com.javispedro.sowatch.metawatch 1.0 MWPage { id: page - Connections { - target: watch - onActiveChanged: { - console.log("watchface is now " + (watch.active ? "active" : "inactive")) - } - } - Column { Item { id: systemArea @@ -30,6 +23,7 @@ MWPage { Item { width: page.width height: 30 + // TODO Weather stuff. } Image { @@ -107,7 +101,7 @@ MWPage { function updateWeather() { var weather = notifications.getMostRecentByType(Notification.WeatherNotification); if (typeof weather !== "undefined") { - // TODO + // TODO Weather stuff } } @@ -116,16 +110,6 @@ MWPage { updateWeather(); } - Connections { - target: watch - onActiveChanged: { - if (watch.active) { - console.log("watchface active"); - //updateUnreadCounts(); - } - } - } - Connections { target: notifications onModelChanged: update(); -- cgit v1.2.3