aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickgridview/data/gridview-initCurrent.qml
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@theqtcompany.com>2015-09-06 10:39:42 +0200
committerLiang Qi <liang.qi@theqtcompany.com>2015-09-06 10:39:51 +0200
commit68607aeeeb6ba84b843a0e3d848a5438a36f55a7 (patch)
treef7ff7ef369e079599d8be73f909498aeb6e75201 /tests/auto/quick/qquickgridview/data/gridview-initCurrent.qml
parenta719e348d22b1ce158a7b2be878965ac3a258914 (diff)
parent42f58e557034bb95005db465f078212cfc1b693a (diff)
Merge remote-tracking branch 'origin/5.6' into dev
Diffstat (limited to 'tests/auto/quick/qquickgridview/data/gridview-initCurrent.qml')
-rw-r--r--tests/auto/quick/qquickgridview/data/gridview-initCurrent.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/quick/qquickgridview/data/gridview-initCurrent.qml b/tests/auto/quick/qquickgridview/data/gridview-initCurrent.qml
index af35d2fa1b..0a6184c9de 100644
--- a/tests/auto/quick/qquickgridview/data/gridview-initCurrent.qml
+++ b/tests/auto/quick/qquickgridview/data/gridview-initCurrent.qml
@@ -6,6 +6,7 @@ Rectangle {
property int current: grid.currentIndex
property bool showHeader: false
property bool showFooter: false
+ property int currentItemChangedCount: 0
width: 240
height: 320
@@ -63,5 +64,7 @@ Rectangle {
model: testModel
header: root.showHeader ? headerFooter : null
footer: root.showFooter ? headerFooter : null
+
+ onCurrentItemChanged: { root.currentItemChangedCount++ }
}
}