4 property string catid : parent.catid
5 property bool inEditMode: false
6 width: parent.width; height: parent.height;
8 signal feedClicked(string feedid)
11 feeds.xml = catid == "" ? "<?xml version=\"1.0\" encoding=\"utf-8\"?><xml></xml>" : controller.getFeedsXml(catid);
13 //console.log(feeds.xml)
16 //Component.onCompleted: { console.log(catid + "/" + parent.catid); console.log(feeds.xml) }
18 //onCatidChanged: console.log("catid changed: "+catid)
21 id: feedList; model: feeds; delegate: feedDelegate; z: 6
22 width: parent.width; height: parent.height; /*x: 0;*/
24 flickDeceleration: 1500
31 //source: catid == "" ? "" : "http://localhost:8000/feeds/" + catid //+ "?onlyUnread=" + parent.hideReadArticles
32 xml: catid == "" ? "<?xml version=\"1.0\" encoding=\"utf-8\"?><xml></xml>" : controller.getFeedsXml(catid)
35 XmlRole { name: "title"; query: "feedname/string()" }
36 XmlRole { name: "feedid"; query: "feedid/string()"; isKey: true }
37 XmlRole { name: "unread"; query: "unread/string()"; isKey: true }
38 XmlRole { name: "updatedDate"; query: "updatedDate/string()" }
39 XmlRole { name: "icon"; query: "icon/string()" }
40 XmlRole { name: "updating"; query: "updating/string()"; isKey: true }
41 //XmlRole { name: "url"; query: "url/string()"; }
49 //Component.onCompleted: console.log("item:"+feedid + " "+ visible + " "+ height + " " + width)
51 //width: wrapper.ListView.view.width;
52 visible: (unread == "0" && feedsItem.hideReadFeeds=="True") ? false : true
54 height: (visible) ? 86 : 0
59 Rectangle { color: "black"; opacity: index % 2 ? 0.2 : 0.4; height: 84; width: wrapper.width; y: 1 }
61 x: 3; y: 4; width: 77; height: 77; color: "#000000"; smooth: true
62 Image { width:32; height: 32; anchors.verticalCenter: parent.verticalCenter; anchors.horizontalCenter: parent.horizontalCenter;
63 source: (updating=="True")? "common/images/loading.png" : (icon == "False") ? "common/images/feedingit.png" : icon;
64 NumberAnimation on rotation {
65 from: 0; to: 360; running: (updating=="True"); loops: Animation.Infinite; duration: 900
71 x: 92; width: wrapper.ListView.view.width - 95; y: 5; spacing: 2
72 Text { text: title; color: "white"; width: parent.width; font.bold: true; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" }
73 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" }
74 //Text { text: feedname; width: parent.width; elide: Text.ElideLeft; color: "#cccccc"; style: Text.Raised; styleColor: "black" }
77 //// x: wrapper.ListView.view.width - 128; y: 12
78 //// height: 58; width: 58;
79 //// //anchors.horizontalCenter: parent.horizontalCenter;
80 //// Image { source: "common/images/wmEditIcon.png" }
82 //// anchors.fill: parent; onClicked: { container.feedEdit(feedname, feedid, url); }
84 //// visible: inEditMode
87 // x: wrapper.ListView.view.width - 64; y: 12
88 // height: 58; width: 58;
89 // //anchors.horizontalCenter: parent.horizontalCenter;
90 // Image { source: "common/images/delete.png" }
92 // anchors.fill: parent; onClicked: { container.feedDeleted(feedid); }
94 // visible: inEditMode
98 anchors.fill: wrapper;
100 //controller.feedClicked(model.feed)