import Qt 4.7
Item {
- //anchors.fill: parent;
- width: parent.width;
- property string catid : ""
- property bool inEditMode: true
- x: parent.width; height: parent.height;
- anchors.top: parent.top; anchors.bottom: parent.bottom
+ property string catid : parent.catid
+ property bool inEditMode: false
+ width: parent.width; height: parent.height;
+
+ signal feedClicked(string feedid)
function reload() {
feeds.xml = catid == "" ? "" : controller.getFeedsXml(catid);
//feeds.reload()
+ console.log(feeds.xml)
}
- //Component.onCompleted: { console.log(x + " /") }
+ Component.onCompleted: { console.log(catid + "/" + parent.catid) }
ListView {
id: feedList; model: feeds; delegate: feedDelegate; z: 6
id: feeds
//source: catid == "" ? "" : "http://localhost:8000/feeds/" + catid //+ "?onlyUnread=" + parent.hideReadArticles
- //xml: catid == "" ? "" : controller.getFeedsXml(catid)
+ xml: catid == "" ? "" : controller.getFeedsXml(catid)
query: "/xml/feed"
XmlRole { name: "title"; query: "feedname/string()" }
id: feedDelegate
Item {
+
+ Component.onCompleted: console.log("item:"+feedid)
id: wrapper; width: wrapper.ListView.view.width;
visible: (unread == "0" && feedsItem.hideReadFeeds=="True") ? false : true
height: (visible) ? 86 : 0
MouseArea {
anchors.fill: wrapper;
onClicked: {
- controller.feedClicked(model.feed)
- container.feedClicked(feedid, updating=="True")
+ //controller.feedClicked(model.feed)
+ feedClicked(feedid)
}
}
- }
+ }
}
}