aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicklistview/data
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-07-30 15:41:10 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-07-30 15:42:09 +0200
commitc4aa4ffa21c8ce2ca7cf18085a6be17b8e704b27 (patch)
tree48ae7a7edacaa1d3c3428ec612eca7122ca751ed /tests/auto/quick/qquicklistview/data
parent47ffb30a69285d6ced1287f14ff5842a298e60e0 (diff)
parent8e1b88e457cbee0000d5956f2ff5a98724c2d3e4 (diff)
Merge remote-tracking branch 'origin/stable' into 5.3
Conflicts: tests/auto/quick/qquicklistview/tst_qquicklistview.cpp Change-Id: I80584b4f7d62cd86d3449e19176118e3bed886c1
Diffstat (limited to 'tests/auto/quick/qquicklistview/data')
-rw-r--r--tests/auto/quick/qquicklistview/data/qtbug39492.qml40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/data/qtbug39492.qml b/tests/auto/quick/qquicklistview/data/qtbug39492.qml
new file mode 100644
index 0000000000..4df3a080d7
--- /dev/null
+++ b/tests/auto/quick/qquicklistview/data/qtbug39492.qml
@@ -0,0 +1,40 @@
+import QtQuick 2.0
+import QtQml.Models 2.1
+
+Rectangle {
+ id: root
+ width: 240
+ height: 320
+ color: "#ffffff"
+
+
+ Component {
+ id: myDelegate
+ Rectangle {
+ id: wrapper
+ objectName: "wrapper"
+ height: 20
+ width: 240
+ Text {
+ objectName: "delegateText"
+ text: display
+ }
+ color: ListView.isCurrentItem ? "lightsteelblue" : "white"
+ }
+ }
+
+ DelegateModel {
+ id: delegateModel
+ objectName: "delegateModel"
+ model: testModel
+ delegate: myDelegate
+ }
+
+ ListView {
+ id: list
+ objectName: "listView"
+ model: delegateModel;
+ focus: true
+ anchors.fill: parent
+ }
+}