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

List:       kde-commits
Subject:    playground/base/plasma/declarative-applets/replacements/news/package
From:       Marco Martin <notmart () gmail ! com>
Date:       2011-03-27 14:13:22
Message-ID: 20110327141322.26DD6AC8CA () svn ! kde ! org
[Download RAW message or body]

SVN commit 1226187 by mart:

adjust delegate vertical resizing


 M  +1 -0      contents/ui/BasicComponents/ListItem.qml  
 M  +2 -0      contents/ui/ComplexComponents/ItemsList.qml  
 M  +3 -6      platformcontents/application/tablet/ui/BasicComponents/ListItem.qml  
 M  +2 -0      platformcontents/application/tablet/ui/BasicComponents/ListItemEntry.qml \
  M  +1 -0      platformcontents/application/tablet/ui/BasicComponents/ListItemSource.qml \



--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/contents/ui/BasicComponents/ListItem.qml \
#1226186:1226187 @@ -27,6 +27,7 @@
     signal clicked;
     width: parent.width
     height: childrenRect.height+4
+    property int implicitHeight
 
 
     PlasmaCore.FrameSvgItem {
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/contents/ui/ComplexComponents/ItemsList.qml \
#1226186:1226187 @@ -55,7 +55,9 @@
     section.delegate: ListItem {
         id: sectionDelegate
         state: "section"
+        implicitHeight: sectionText.height
         Text {
+            id: sectionText
             anchors.verticalCenter: parent.verticalCenter
             anchors.left: sectionDelegate.padding.left
             anchors.right: sectionDelegate.padding.right
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/platformcontents/application/tablet/ui/BasicComponents/ListItem.qml \
#1226186:1226187 @@ -26,24 +26,21 @@
     imagePath: plasmoid.file("images", "listitem.svgz")
     state: "normal"
     prefix: state
+    property int implicitHeight
 
     property alias padding: paddingRectangle
     signal clicked;
 
     width: parent.width
-    height: paddingRectangle.height + background.margins.top + \
background.margins.bottom +    height: implicitHeight + background.margins.top + \
background.margins.bottom  
     Item {
         id: paddingRectangle
         anchors.fill: background
-        anchors.left:parent.left
-        anchors.top: parent.top
-        anchors.right: parent.right
         anchors.leftMargin: background.margins.left
         anchors.topMargin: background.margins.top
         anchors.rightMargin: background.margins.right
-        height: childrenRect.height + background.margins.bottom
-        //anchors.bottomMargin: background.margins.bottom
+        anchors.bottomMargin: background.margins.bottom
     }
 
     MouseArea {
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/platformcontents/application/tablet/ui/BasicComponents/ListItemEntry.qml \
#1226186:1226187 @@ -25,6 +25,7 @@
     id: listItem
     property string text;
     property string date;
+    implicitHeight: delegateLayout.height
 
     Column {
         id : delegateLayout
@@ -37,6 +38,7 @@
         Text {
             width: delegateLayout.width
             color: theme.textColor
+            wrapMode: Text.WordWrap
             textFormat: Text.RichText
             text: listItem.text
         }
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/platformcontents/application/tablet/ui/BasicComponents/ListItemSource.qml \
#1226186:1226187 @@ -26,6 +26,7 @@
     property string text
     property string icon
     property int unread
+    implicitHeight: delegateLayout.height
 
     Row{
         id: delegateLayout


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

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