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 --- metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'metawatch/qml') diff --git a/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml b/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml index b5ad787..d6d4c42 100644 --- a/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml +++ b/metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml @@ -26,6 +26,17 @@ Rectangle { visible: text != "" } + MWLabel { + id: status + anchors.top: parent.top + anchors.left: parent.left + anchors.leftMargin: 1 + height: 8 + font.family: "MetaWatch Large caps 8pt" + font.pixelSize: 8 + text: "" + } + MWLabel { id: time anchors.right: parent.right @@ -40,6 +51,7 @@ Rectangle { function updateStatusBar() { var now = new Date time.text = Qt.formatDate(now, "ddd") + " " + Qt.formatTime(now) + status.text = notifications.fullCount() > 0 ? "*" : "" } Timer { -- cgit v1.2.3