aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-08-20 15:18:29 +0200
committerRichard Moe Gustavsen <richard.gustavsen@qt.io>2018-08-21 08:48:21 +0000
commit2fd7b6a65190e83ffd70fe1f8ca7acac2af5478c (patch)
treea1224e4b18e0e1712eea52ccffc42f99fae136e3 /tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
parentc895162296dddde2aaa173499d7b59c0034734ac (diff)
QQuickTableView: set the stacking order of delegate items to 1
Let all delegate items have a stackin order (z) equal to 1. This is how ListView does it, so do the same in TableView to make them behave as similar as possible. Change-Id: I5d4629e8b116cd62c84e4fe9aefdb087e3c6e325 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktableview/tst_qquicktableview.cpp')
-rw-r--r--tests/auto/quick/qquicktableview/tst_qquicktableview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
index 09c2850247..e4ac5b805b 100644
--- a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
+++ b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
@@ -689,6 +689,7 @@ void tst_QQuickTableView::checkLayoutOfEqualSizedDelegateItems()
qreal expectedY = margins.top() + (cell.y() * (expectedItemHeight + spacing.height()));
QCOMPARE(item->x(), expectedX);
QCOMPARE(item->y(), expectedY);
+ QCOMPARE(item->z(), 1);
QCOMPARE(item->width(), expectedItemWidth);
QCOMPARE(item->height(), expectedItemHeight);
}