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
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: "black"; 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
45 x: 92; width: wrapper.ListView.view.width - 95; y: 15; spacing: 2
46 Text { text: title; color: "white"; width: parent.width; font.bold: true; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" }
47 //Text { text: feedname; width: parent.width; elide: Text.ElideLeft; color: "#cccccc"; style: Text.Raised; styleColor: "black" }
50 x: wrapper.ListView.view.width - 128; y: 12
51 height: 58; width: 58;
52 //anchors.horizontalCenter: parent.horizontalCenter;
53 Image { source: "common/images/wmEditIcon.png" }
55 anchors.fill: parent; onClicked: { container.categoryEdit(catname, catid); }
60 x: wrapper.ListView.view.width - 64; y: 12
61 height: 58; width: 58;
62 //anchors.horizontalCenter: parent.horizontalCenter;
63 Image { source: "common/images/delete.png" }
65 anchors.fill: parent; onClicked: { container.categoryDeleted(catid); }
70 MouseArea { enabled: !inEditMode; anchors.fill: wrapper; onClicked: { categoryClicked(catid); } }