signal feedClicked(string feedid)
function reload() {
- feeds.xml = catid == "" ? "" : controller.getFeedsXml(catid);
+ feeds.xml = catid == "" ? "<?xml version=\"1.0\" encoding=\"utf-8\"?><xml></xml>" : controller.getFeedsXml(catid);
//feeds.reload()
- console.log(feeds.xml)
+ //console.log(feeds.xml)
}
- Component.onCompleted: { console.log(catid + "/" + parent.catid) }
+ //Component.onCompleted: { console.log(catid + "/" + parent.catid); console.log(feeds.xml) }
+
+ //onCatidChanged: console.log("catid changed: "+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 == "" ? "<?xml version=\"1.0\" encoding=\"utf-8\"?><xml></xml>" : controller.getFeedsXml(catid)
query: "/xml/feed"
XmlRole { name: "title"; query: "feedname/string()" }
Item {
- Component.onCompleted: console.log("item:"+feedid)
- id: wrapper; width: wrapper.ListView.view.width;
+ //Component.onCompleted: console.log("item:"+feedid + " "+ visible + " "+ height + " " + width)
+ id: wrapper;
+ //width: wrapper.ListView.view.width;
visible: (unread == "0" && feedsItem.hideReadFeeds=="True") ? false : true
+ //visible: true
height: (visible) ? 86 : 0
+ width: parent.width
Item {
id: moveMe
Text { text: updatedDate + " / " + qsTr("%1 unread items").arg(unread); color: (unread=="0") ? "white" : "#7b97fd"; width: parent.width; font.bold: false; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" }
//Text { text: feedname; width: parent.width; elide: Text.ElideLeft; color: "#cccccc"; style: Text.Raised; styleColor: "black" }
}
+//// Item {
+//// x: wrapper.ListView.view.width - 128; y: 12
+//// height: 58; width: 58;
+//// //anchors.horizontalCenter: parent.horizontalCenter;
+//// Image { source: "common/images/wmEditIcon.png" }
+//// MouseArea {
+//// anchors.fill: parent; onClicked: { container.feedEdit(feedname, feedid, url); }
+//// }
+//// visible: inEditMode
+//// }
// Item {
-// x: wrapper.ListView.view.width - 128; y: 12
+// x: wrapper.ListView.view.width - 64; y: 12
// height: 58; width: 58;
// //anchors.horizontalCenter: parent.horizontalCenter;
-// Image { source: "common/images/wmEditIcon.png" }
+// Image { source: "common/images/delete.png" }
// MouseArea {
-// anchors.fill: parent; onClicked: { container.feedEdit(feedname, feedid, url); }
+// anchors.fill: parent; onClicked: { container.feedDeleted(feedid); }
// }
// visible: inEditMode
// }
- Item {
- x: wrapper.ListView.view.width - 64; y: 12
- height: 58; width: 58;
- //anchors.horizontalCenter: parent.horizontalCenter;
- Image { source: "common/images/delete.png" }
- MouseArea {
- anchors.fill: parent; onClicked: { container.feedDeleted(feedid); }
- }
- visible: inEditMode
- }
}
MouseArea {
anchors.fill: wrapper;