diff options
author | Martin Jones <martin.jones@nokia.com> | 2010-05-20 04:23:50 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2010-05-20 04:23:50 (GMT) |
commit | 972134e16767d1ea5224fba911c894eb22b70ca4 (patch) | |
tree | f08249c9e470fc81111af4942804354cb4d31991 /tests/auto/declarative/qdeclarativegridview/data/manual-highlight.qml | |
parent | 5732a44092e17829985a381400bafccc326a0d1f (diff) | |
download | Qt-972134e16767d1ea5224fba911c894eb22b70ca4.zip Qt-972134e16767d1ea5224fba911c894eb22b70ca4.tar.gz Qt-972134e16767d1ea5224fba911c894eb22b70ca4.tar.bz2 |
Stop highlight animators for highlightFollowsCurrentItem: false
Task-number: QTBUG-10803
Diffstat (limited to 'tests/auto/declarative/qdeclarativegridview/data/manual-highlight.qml')
-rw-r--r-- | tests/auto/declarative/qdeclarativegridview/data/manual-highlight.qml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativegridview/data/manual-highlight.qml b/tests/auto/declarative/qdeclarativegridview/data/manual-highlight.qml new file mode 100644 index 0000000..510fcc5 --- /dev/null +++ b/tests/auto/declarative/qdeclarativegridview/data/manual-highlight.qml @@ -0,0 +1,48 @@ +import Qt 4.7 + +Item { + + ListModel { + id: model + ListElement { + name: "Bill Smith" + number: "555 3264" + } + ListElement { + name: "John Brown" + number: "555 8426" + } + ListElement { + name: "Sam Wise" + number: "555 0473" + } + ListElement { + name: "Bob Brown" + number: "555 5845" + } + } + + Component { + id: highlight + Rectangle { + objectName: "highlight" + width: 80; height: 80 + color: "lightsteelblue"; radius: 5 + y: grid.currentItem.y + x: grid.currentItem.x + } + } + + GridView { + id: grid + objectName: "grid" + anchors.fill: parent + model: model + delegate: Text { objectName: "wrapper"; text: name; width: 80; height: 80 } + + highlight: highlight + highlightFollowsCurrentItem: false + focus: true + } + +} |