9 property int count: list.count
10 property bool showHeader: false
11 property bool showFooter: false
12 property real hr: list.visibleArea.heightRatio
13 function heightRatio() {
14 return list.visibleArea.heightRatio
17 function checkProperties() {
18 testObject.error = false;
19 if (visualModel.model != testModel) {
20 console.log("model property incorrect");
21 testObject.error = true;
23 if (!testObject.animate && visualModel.delegate != myDelegate) {
24 console.log("delegate property incorrect - expected myDelegate");
25 testObject.error = true;
27 if (testObject.animate && visualModel.delegate != animatedDelegate) {
28 console.log("delegate property incorrect - expected animatedDelegate");
29 testObject.error = true;
31 if (testObject.invalidHighlight && list.highlight != invalidHl) {
32 console.log("highlight property incorrect - expected invalidHl");
33 testObject.error = true;
35 if (!testObject.invalidHighlight && list.highlight != myHighlight) {
36 console.log("highlight property incorrect - expected myHighlight");
37 testObject.error = true;
49 Package.name: "package"
56 objectName: "textName"
62 objectName: "textNumber"
69 color: ListView.isCurrentItem ? "lightsteelblue" : "white"
81 Package.name: "package"
88 objectName: "textName"
94 objectName: "textNumber"
101 color: ListView.isCurrentItem ? "lightsteelblue" : "white"
102 ListView.onRemove: SequentialAnimation {
103 PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: true }
104 NumberAnimation { target: wrapper; property: "scale"; to: 0; duration: 250; easing.type: "InOutQuad" }
105 PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: false }
113 Rectangle { color: "green" }
121 Rectangle { height: 30; width: 240; color: "blue" }
127 delegate: testObject.animate ? animatedDelegate : myDelegate
137 model: visualModel.parts.package
138 highlight: testObject.invalidHighlight ? invalidHl : myHighlight
139 highlightMoveSpeed: 1000
140 highlightResizeSpeed: 1000
141 cacheBuffer: testObject.cacheBuffer
142 header: root.showHeader ? headerFooter : null
143 footer: root.showFooter ? headerFooter : null