[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-26 17:46:42
Message-ID: 20110326174642.4053BAC8CA () svn ! kde ! org
[Download RAW message or body]
SVN commit 1226099 by mart:
fix the category filter
M +4 -2 contents/ui/ComplexComponents/FeedList.qml
M +3 -0 contents/ui/ComplexComponents/ItemsList.qml
M +2 -0 contents/ui/main.qml
M +1 -2 platformcontents/application/tablet/ui/main.qml
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/contents/ui/ComplexComponents/FeedList.qml \
#1226098:1226099 @@ -27,6 +27,8 @@
id: feedList
signal itemClicked;
+ property string feedCategory
+
spacing: 5;
snapMode: ListView.SnapToItem
@@ -46,7 +48,7 @@
text: i18n("Show All")
unread: BookKeeping.totalUnreadCount
onClicked: {
- feedCategoryFilter.filterRegExp = ""
+ feedCategory = ""
feedList.itemClicked()
}
Connections {
@@ -64,7 +66,7 @@
unread: BookKeeping.unreadForSource(feed_url)
onClicked: {
- feedCategoryFilter.filterRegExp = feed_url
+ feedCategory = feed_url
itemClicked()
}
Connections {
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/contents/ui/ComplexComponents/ItemsList.qml \
#1226098:1226099 @@ -27,6 +27,8 @@
ListView {
id: list
+ property string feedCategory
+
spacing: 5;
snapMode: ListView.SnapToItem
@@ -51,6 +53,7 @@
sourceModel: PlasmaCore.SortFilterModel {
id: feedCategoryFilter
filterRole: "feed_url"
+ filterRegExp: feedCategory
sourceModel: PlasmaCore.DataModel {
dataSource: feedSource
keyRoleFilter: "items"
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/contents/ui/main.qml \
#1226098:1226099 @@ -84,6 +84,7 @@
QGraphicsWidget {
id: feedListContainer
FeedList {
+ id: feedList
anchors.fill: feedListContainer
onItemClicked: mainView.currentIndex = 1
}
@@ -97,6 +98,7 @@
ItemsList {
id: itemsList
anchors.fill: listContainer
+ feedCategory: feedList.feedCategory
}
}
--- trunk/playground/base/plasma/declarative-applets/replacements/news/package/platformcontents/application/tablet/ui/main.qml \
#1226098:1226099 @@ -65,8 +65,6 @@
}
-
-
Column {
Toolbar {
id: toolbarFrame
@@ -100,6 +98,7 @@
id: itemsList
anchors.fill: listContainer
anchors.leftMargin: listContainer.width/4
+ feedCategory: feedList.feedCategory
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic