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

List:       kde-commits
Subject:    playground/base/plasma/declarative-applets/replacements/rssnow/package
From:       Lukas Appelhans <l.appelhans () gmx ! de>
Date:       2010-12-08 14:23:08
Message-ID: 20101208142308.2CDF6AC8A5 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1204650 by lappelhans:

Metadata + updates


 M  +1 -1      contents/ui/ListItem.qml  
 M  +16 -6     contents/ui/ListItemEntry.qml  
 M  +8 -14     contents/ui/main.qml  
 A             metadata.desktop  


--- trunk/playground/base/plasma/declarative-applets/replacements/rssnow/package/contents/ui/ListItem.qml \
#1204649:1204650 @@ -26,7 +26,7 @@
     imagePath: "widgets/frame"
     prefix: "plain"
 
-    width: list.width
+    width: feedList.width
     height: childrenRect.height
 
     property alias padding: paddingRectangle;
--- trunk/playground/base/plasma/declarative-applets/replacements/rssnow/package/contents/ui/ListItemEntry.qml \
#1204649:1204650 @@ -28,26 +28,36 @@
 
     Column {
         id : delegateLayout
-        width: list.width
-        height: list.height
+        width: feedList.width
+        height: feedList.height
         spacing: 5
         anchors.left: listItem.padding.left
         anchors.right: listItem.padding.right
         anchors.top: listItem.padding.top
 
-        Text {
-            width: delegateLayout.width
+        /*Text {
+            id: title
+            width: delegateLayout.width - rightArrow.width
             height: delegateLayout.height
             color: theme.textColor
             textFormat: Text.RichText
             text: listItem.text
-        }
-        Text {
+        }*/
+        /*Text {
             color: theme.textColor
             width: delegateLayout.width
             horizontalAlignment: Text.AlignRight
             text: '<em><small>'+listItem.date+'</em></small>&nbsp;'
+        }*/
+        PlasmaWidgets.SvgWidget {
+            width: mainWindow.width
+            height: 50
+            elementID: "right"
+            svg: PlasmaCore.Svg {
+                id: headersvg
+                imagePath: "rssnow/right"
         }
+        }
 
     }
 }
--- trunk/playground/base/plasma/declarative-applets/replacements/rssnow/package/contents/ui/main.qml \
#1204649:1204650 @@ -83,11 +83,11 @@
         PlasmaWidgets.SvgWidget {
             width: mainWindow.width
             height: 50
+            elementID: "RSSNOW"
             svg: PlasmaCore.Svg {
                 id: headersvg
                 imagePath: "rssnow/rssnow"
             }
-            elementID: "RSSNOW"
         }
 
 
@@ -112,7 +112,7 @@
                         }
                     }
                     delegate: ListView {
-                        id: list
+                        id: entryList
                         anchors.fill: feedList
                         spacing: 5;
                         snapMode: ListView.SnapToItem
@@ -121,13 +121,13 @@
                         height: 50
                         
                         clip: true
-                        model: PlasmaCore.SortFilterModel {
+                        model: /*PlasmaCore.SortFilterModel {
                         filterRole: "feed_title"
                         sourceModel: PlasmaCore.DataModel {
                             dataSource: feedSource
                             keyRoleFilter: "sources"
                         }
-                    }/*ListModel {
+                    }*/ListModel {
      id: fruitModel
 
      ListElement {
@@ -142,7 +142,7 @@
          name: "Banana"
          cost: 1.95
      }
- } *//*PlasmaCore.SortFilterModel {
+ } /*PlasmaCore.SortFilterModel {
                             id: postTitleFilter
                             filterRole: "title"
                             sortRole: "time"
@@ -173,18 +173,12 @@
                             text: "bla"
                             date: Utils.date(time)
                                                     
-                                                    
-                                                    /*onClicked: {
-                                                     *    \
                BookKeeping.setArticleRead(link, feed_url);
-                                                     *    opacity = 0.5;
-                                                     * 
-                                                     *    listEntry.index = \
                listEntry.index + 1
-                                                     *    bodyView.html = "<body \
                style=\"background:#fff;\">"+description+"</body>"
-                                                     *    //mainView.currentIndex = \
                2
-                                                    }*/
+                            onClicked: {
+                                entryList.currentIndex = entryList.currentIndex + 1
                         }
                     }
                 }
             }
         }
 }
+}


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

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