4 // anchors.fill: parent;
5 width: parent.width; height: parent.height;
6 //anchors.top: parent.top; anchors.bottom: parent.bottom
7 property bool inEditMode: true
14 id: categoryList; model: categories; delegate: categoryDelegate; z: 6;
15 cacheBuffer: 100; width: parent.width; height: parent.height;
22 xml: controller.getCategoryXml()
23 query: "/xml/category"
25 XmlRole { name: "title"; query: "catname/string()" }
26 XmlRole { name: "catid"; query: "catid/string()"; isKey: true }
34 id: wrapper; width: wrapper.ListView.view.width; height: 86
38 Rectangle { color: "black"; opacity: index % 2 ? 0.2 : 0.4; height: 84; width: wrapper.width; y: 1 }
40 x: 6; y: 4; width: 77; height: parent.height - 9; color: "white"; smooth: true
44 x: 92; width: wrapper.ListView.view.width - 95; y: 15; spacing: 2
45 Text { text: title; color: "white"; width: parent.width; font.bold: true; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" }
46 //Text { text: feedname; width: parent.width; elide: Text.ElideLeft; color: "#cccccc"; style: Text.Raised; styleColor: "black" }
49 x: wrapper.ListView.view.width - 128; y: 12
50 height: 58; width: 58;
51 //anchors.horizontalCenter: parent.horizontalCenter;
52 Image { source: "common/images/wmEditIcon.png" }
54 anchors.fill: parent; onClicked: { container.categoryEdit(catname, catid); }
59 x: wrapper.ListView.view.width - 64; y: 12
60 height: 58; width: 58;
61 //anchors.horizontalCenter: parent.horizontalCenter;
62 Image { source: "common/images/delete.png" }
64 anchors.fill: parent; onClicked: { container.categoryDeleted(catid); }
69 MouseArea { enabled: !inEditMode; anchors.fill: wrapper; onClicked: { container.categoryClicked(catid); } }