4 //anchors.fill: parent;
6 property string feedid : ""
7 property alias count: articles.count
8 property alias url: articles.source
10 x: parent.width; height: parent.height;
11 anchors.top: parent.top; anchors.bottom: parent.bottom
13 function getArticleid(index) {
14 return articles.get(index).articleid
22 id: articleList; model: articles; delegate: articleDelegate; z: 6
23 width: parent.width; height: parent.height; /*x: 0;*/
25 flickDeceleration: 1500
31 source: feedid == "" ? "" : "http://localhost:8000/articles/" + feedid + "?onlyUnread=" + hideReadArticles
34 XmlRole { name: "title"; query: "title/string()" }
35 XmlRole { name: "articleid"; query: "articleid/string()"; isKey: true }
36 XmlRole { name: "path"; query: "path/string()" }
37 XmlRole { name: "unread"; query: "unread/string()"; isKey: true}
44 id: wrapper; width: wrapper.ListView.view.width; height: 86
47 Rectangle { id: backRect; color: "black"; opacity: index % 2 ? 0.2 : 0.4; height: 84; width: wrapper.width; y: 1 }
49 anchors.fill: backRect
51 verticalAlignment: Text.AlignVCenter; text: title; color: (unread=="True") ? "white" : "#7b97fd";
52 width: wrapper.width; wrapMode: Text.WordWrap; font.bold: false;
55 // x: 3; y: 4; width: 77; height: 77; color: "#ff0000"; smooth: true
62 // width: wrapper.width - 3; y: 5; spacing: 2
63 // height: parent.height;
64 // Text { Rectangle {anchors.fill: parent; color: "white"; opacity: 0.5;}
65 // verticalAlignment: Text.AlignVCenter; text: title; color: (unread=="True") ? "white" : "#7b97fd"; width: parent.width; wrapMode: Text.WordWrap; font.bold: false; /*elide: Text.ElideRight;*/ /*style: Text.Raised;*/ styleColor: "black"; }
66 // //Text { text: feedname; width: parent.width; elide: Text.ElideLeft; color: "#cccccc"; style: Text.Raised; styleColor: "black" }
69 MouseArea { anchors.fill: wrapper; onClicked: { container.articleClicked(articleid, index) } }