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 (list.model != testModel) {
20
console.log("model property incorrect");
21
testObject.error = true;
23
if (!testObject.animate && list.delegate != myDelegate) {
24
console.log("delegate property incorrect - expected myDelegate");
25
testObject.error = true;
27
if (testObject.animate && list.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;
54
objectName: "textName"
60
objectName: "textNumber"
67
color: ListView.isCurrentItem ? "lightsteelblue" : "#EEEEEE"
83
objectName: "textName"
89
objectName: "textNumber"
96
color: ListView.isCurrentItem ? "lightsteelblue" : "white"
97
ListView.onRemove: SequentialAnimation {
98
PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: true }
99
NumberAnimation { target: wrapper; property: "scale"; to: 0; duration: 250; easing.type: "InOutQuad" }
100
PropertyAction { target: wrapper; property: "ListView.delayRemove"; value: false }
107
Rectangle { color: "green" }
115
Rectangle { height: 30; width: 240; color: "blue" }
125
delegate: testObject.animate ? animatedDelegate : myDelegate
126
highlight: testObject.invalidHighlight ? invalidHl : myHighlight
127
highlightMoveSpeed: 1000
128
highlightResizeSpeed: 1000
129
cacheBuffer: testObject.cacheBuffer
130
header: root.showHeader ? headerFooter : null
131
footer: root.showFooter ? headerFooter : null