aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-07-19 13:23:33 +0200
committerMitch Curtis <mitch.curtis@qt.io>2018-07-19 13:45:15 +0000
commit50d11f62e7ef4f1eb261a11c76dd39a271525a69 (patch)
tree5807e9dc41d89446f341fdc9292964a5715b349e /tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
parentf0a1181291b77b5bc758c6ea88a02e31624ba88c (diff)
tst_qquicktableview: don't set column count to 0
It doesn't really make sense to do this, and it causes errors in delegates where "modelData" is undefined. Change-Id: Iddab63417d45f1b07cf8f66240f3aa0adcfeafdd Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktableview/tst_qquicktableview.cpp')
-rw-r--r--tests/auto/quick/qquicktableview/tst_qquicktableview.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
index ba9638e6cb..e4692ec1fe 100644
--- a/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
+++ b/tests/auto/quick/qquicktableview/tst_qquicktableview.cpp
@@ -1065,10 +1065,8 @@ void tst_QQuickTableView::modelSignals()
QCOMPARE(tableView->rows(), 0);
QCOMPARE(tableView->columns(), 10);
- model.setColumnCount(0);
+ model.setColumnCount(1);
WAIT_UNTIL_POLISHED;
- // When the QAbstractItemModel's column count is set to 0,
- // QQmlAdaptorModel::columnCount() returns 1 as long as it is "valid".
QCOMPARE(tableView->rows(), 0);
QCOMPARE(tableView->columns(), 1);