blob: 4a69a0d54edeedc77aad95ffcfa337db560a3e33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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;
}
}
}
}
|