4 // anchors.fill: parent;
5 width: parent.width; height: parent.height;
6 //anchors.top: parent.top; anchors.bottom: parent.bottom
7 property bool inEditMode: false
8 signal categoryClicked(string cat)
15 id: categoryList; model: categories; delegate: categoryDelegate; z: 6;
16 cacheBuffer: 100; width: parent.width; height: parent.height;
23 xml: controller.getCategoryXml()
24 query: "/xml/category"
26 XmlRole { name: "title"; query: "catname/string()" }
27 XmlRole { name: "catid"; query: "catid/string()"; isKey: true }
35 id: wrapper; width: wrapper.ListView.view.width; height: 86
39 Rectangle { color: "#eeeeee"; opacity: index % 2 ? 0.2 : 0.4; height: 84; width: wrapper.width; y: 1 }
41 // x: 6; y: 4; width: 77; height: parent.height - 9; color: "white"; smooth: true
46 width: wrapper.ListView.view.width /*- 95; y: 15*/; spacing: 2
50 Text { text: title; color: "white"; width: parent.width; font.bold: true;
52 elide: Text.ElideRight; style: Text.Raised; styleColor: "black"; font.pointSize: 20
53 verticalAlignment: Text.AlignVCenter;
55 //Text { text: feedname; width: parent.width; elide: Text.ElideLeft; color: "#cccccc"; style: Text.Raised; styleColor: "black" }
58 x: wrapper.ListView.view.width - 128; y: 12
59 height: 58; width: 58;
60 //anchors.horizontalCenter: parent.horizontalCenter;
61 Image { source: "common/images/wmEditIcon.png" }
63 anchors.fill: parent; onClicked: { container.categoryEdit(catname, catid); }
68 x: wrapper.ListView.view.width - 64; y: 12
69 height: 58; width: 58;
70 //anchors.horizontalCenter: parent.horizontalCenter;
71 Image { source: "common/images/delete.png" }
73 anchors.fill: parent; onClicked: { container.categoryDeleted(catid); }
78 MouseArea { enabled: !inEditMode; anchors.fill: wrapper; onClicked: { categoryClicked(catid); } }