summaryrefslogtreecommitdiff
path: root/metawatch/qml
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-05-07 01:37:21 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-05-07 01:37:21 +0200
commit6003bf81107dd9be51589c074b74c5af82bfc8ab (patch)
tree502193634979c12b45c2a013668d21556e2c7050 /metawatch/qml
parentae37832316d905889c82706b351b3c037c9e1ab6 (diff)
downloadsowatch-6003bf81107dd9be51589c074b74c5af82bfc8ab.tar.gz
sowatch-6003bf81107dd9be51589c074b74c5af82bfc8ab.zip
testing qml notifications
Diffstat (limited to 'metawatch/qml')
-rw-r--r--metawatch/qml/com/javispedro/sowatch/metawatch/MWTitle.qml12
1 files changed, 12 insertions, 0 deletions
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
@@ -27,6 +27,17 @@ Rectangle {
}
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
anchors.rightMargin: 1
@@ -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 {