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

List:       kde-commits
Subject:    playground/base/plasma/declarative-applets/replacements/rssnow/package/contents/ui
From:       Lukas Appelhans <l.appelhans () gmx ! de>
Date:       2010-12-10 13:50:29
Message-ID: 20101210135029.F0BB3AC8A6 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1205221 by lappelhans:

Show the actual feed icon


 M  +14 -3     ListItemEntry.qml  
 M  +1 -0      main.qml  


--- trunk/playground/base/plasma/declarative-applets/replacements/rssnow/package/contents/ui/ListItemEntry.qml \
#1205220:1205221 @@ -25,21 +25,32 @@
 ListItem {
     id: listItem
     property string text;
-    property string date;
+    property string iconFile;
 
     Row {
         id : delegateLayout
         width: entryList.width
-        height: entryList.height
+        height: 50
         spacing: 5
         anchors.left: listItem.padding.left
         anchors.right: listItem.padding.right
         anchors.top: listItem.padding.top
 
+        Image {
+            id: image
+            source: iconFile
+            height: parent.height
+            width: parent.height / 2
+            anchors.horizontalCenter: width / 2
+            anchors.verticalCenter: height / 2
+            fillMode: Image.PreserveAspectFit
+            smooth:true
+            opacity: 0.8
+        }
         Text {
             id: title
             clip:true
-            width: delegateLayout.width - rightArrow.width
+            width: delegateLayout.width - rightArrow.width - image.width - \
parent.spacing * 2  height: delegateLayout.height
             color: theme.textColor
             textFormat: Text.RichText
--- trunk/playground/base/plasma/declarative-applets/replacements/rssnow/package/contents/ui/main.qml \
#1205220:1205221 @@ -101,6 +101,7 @@
                     delegate: ListItemEntry {
                         id: listEntry
                         text: title
+                        iconFile: icon
                     }
                 }
             //}


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

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