summaryrefslogtreecommitdiff
path: root/notificationswatchlet
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-13 21:31:52 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-13 21:31:52 +0200
commitabdf3b1eaba8151f1b8e862750c38cb7a5411d2a (patch)
tree69e314d80a332295dd5475fc91f45c2078eaead5 /notificationswatchlet
parent51701e30d710ad016ddf2d306cdd7be122ddf25b (diff)
downloadsowatch-abdf3b1eaba8151f1b8e862750c38cb7a5411d2a.tar.gz
sowatch-abdf3b1eaba8151f1b8e862750c38cb7a5411d2a.zip
make watchsimulator work again
Diffstat (limited to 'notificationswatchlet')
-rw-r--r--notificationswatchlet/metawatch-digital.qml17
1 files changed, 8 insertions, 9 deletions
diff --git a/notificationswatchlet/metawatch-digital.qml b/notificationswatchlet/metawatch-digital.qml
index 71c52a8..57a6176 100644
--- a/notificationswatchlet/metawatch-digital.qml
+++ b/notificationswatchlet/metawatch-digital.qml
@@ -1,12 +1,7 @@
import Qt 4.7
import com.javispedro.sowatch.metawatch 1.0
-Rectangle {
- width: 96
- height: 96
-
- color: "white"
-
+MWPage {
MWTitle {
id: title
anchors.top: parent.top
@@ -22,7 +17,9 @@ Rectangle {
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
+ clip: true
model: watch.notifications
+
delegate: Rectangle {
id: notifDelegate
property bool selected: ListView.isCurrentItem
@@ -30,14 +27,16 @@ Rectangle {
height: childrenRect.height
color: ListView.isCurrentItem ? "black" : "white"
Column {
+ width: parent.width
MWLabel {
- width: notifs.width
+ width: parent.width
text: model.modelData.title
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
color: notifDelegate.selected ? "white" : "black"
+ font.pointSize: 12
}
- MWSmallLabel {
- width: notifs.width
+ MWLabel {
+ width: parent.width
text: model.modelData.body
wrapMode: Text.WrapAtWordBoundaryOrAnywhere
color: notifDelegate.selected ? "white" : "black"