From abdf3b1eaba8151f1b8e862750c38cb7a5411d2a Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Mon, 13 Aug 2012 21:31:52 +0200 Subject: make watchsimulator work again --- notificationswatchlet/metawatch-digital.qml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'notificationswatchlet') 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" -- cgit v1.2.3