From f0564ad9d210cc68bfb1bfc6e56b86fa941ad830 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Sat, 11 Aug 2012 01:10:25 +0200 Subject: more fixes --- notificationswatchlet/metawatch-digital.qml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'notificationswatchlet') diff --git a/notificationswatchlet/metawatch-digital.qml b/notificationswatchlet/metawatch-digital.qml index 1e97052..9129226 100644 --- a/notificationswatchlet/metawatch-digital.qml +++ b/notificationswatchlet/metawatch-digital.qml @@ -24,15 +24,24 @@ Rectangle { anchors.bottom: parent.bottom model: watch.notifications delegate: Rectangle { + id: notifDelegate property bool selected: ListView.isCurrentItem width: notifs.width height: childrenRect.height color: ListView.isCurrentItem ? "black" : "white" - MWLabel { - width: 96 - text: "" + model.modelData.title + "
" + model.modelData.body - wrapMode: Text.WrapAtWordBoundaryOrAnywhere - color: parent.selected ? "white" : "black" + Column { + MWLabel { + width: notifs.width + text: model.modelData.title + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + color: notifDelegate.selected ? "white" : "black" + } + MWSmallLabel { + width: notifs.width + text: model.modelData.body + wrapMode: Text.WrapAtWordBoundaryOrAnywhere + color: notifDelegate.selected ? "white" : "black" + } } } visible: count > 0; -- cgit v1.2.3