[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/mobile/mail
From:       Volker Krause <vkrause () kde ! org>
Date:       2010-11-01 13:29:52
Message-ID: 20101101132952.0C3EBAC8A0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1191932 by vkrause:

fix thread count label layouting

BUG: 255633


 M  +8 -7      HeaderView.qml  


--- trunk/KDE/kdepim/mobile/mail/HeaderView.qml #1191931:1191932
@@ -65,9 +65,8 @@
           anchors.topMargin : 1
           anchors.left : parent.left
           anchors.leftMargin : 10
-          anchors.right: parent.right
-          anchors.rightMargin: deleteAction.width
           height : 30;
+          width: parent.width - (threadInfoLabel.visible ? threadInfoLabel.width : \
0) - anchors.leftMargin - threadInfoLabel.anchors.rightMargin  text : model.subject
           font.pointSize: 14
           color : model.is_unread ? "#E10909" : "#3B3B3B"
@@ -76,10 +75,15 @@
         QML.Text {
           id : threadInfoLabel
           visible : model.threadSize != undefined && model.threadSize > 1
-          anchors.bottom : parent.bottom
+          anchors.top : fromLabel.bottom
+          anchors.topMargin : 1
           anchors.right : parent.right
+          anchors.rightMargin: deleteAction.width
           height : (model.threadSize != undefined) ? 30 : 0
-          text : KDE.i18ncp("This text is only visible if messages > 1", "%2 \
messages, %1 unread", "%2 messages, %1 unread", model.threadUnreadCount, \
model.threadSize); +          font.pointSize: 14
+          text : model.threadUnreadCount > 0 ? KDE.i18ncp("This text is only visible \
if messages > 1", "%2 messages, %1 unread", "%2 messages, %1 unread", +               \
model.threadUnreadCount, model.threadSize) +                                          \
: KDE.i18np( "One message", "%1 messages", model.threadSize );  },
         QML.Image {
           id : importantFlagImage
@@ -186,14 +190,11 @@
       QML.MouseArea {
         anchors.fill: parent
         onClicked: {
-          console.log( "toggle expansion in section " + section );
-          console.log( "section map before: " + _top.collapsedSections );
           if (_top.collapsedSections.indexOf(section) != -1) {
             _top.collapsedSections = _top.collapsedSections.replace(section + ",", \
"")  } else {
             _top.collapsedSections += (section + ",")
           }
-          console.log( "section map after: " + _top.collapsedSections );
         }
       }
     }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic