summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-07-28 13:55:28 (GMT)
committerLeonardo Sobral Cunha <leo.cunha@nokia.com>2009-08-04 08:27:55 (GMT)
commit549736341a2268e33159949e076e0629abeb838a (patch)
tree46be1157e6dc66c610a9d1d91351fc89aa0e8023 /tests
parentd3c96863ec17a69c616bdcb12e6a99a874eba66d (diff)
downloadQt-549736341a2268e33159949e076e0629abeb838a.zip
Qt-549736341a2268e33159949e076e0629abeb838a.tar.gz
Qt-549736341a2268e33159949e076e0629abeb838a.tar.bz2
Fixes selectionModel::hasSelection return value after model::reset
After resetting the model, the selectionModel::hasSelection() of the view should return false. Fixed the corresponding autotest, which was wrong. Task-number: 256502 Reviewed-by: thierry
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qitemselectionmodel/tst_qitemselectionmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qitemselectionmodel/tst_qitemselectionmodel.cpp b/tests/auto/qitemselectionmodel/tst_qitemselectionmodel.cpp
index ae64e51..0541b46 100644
--- a/tests/auto/qitemselectionmodel/tst_qitemselectionmodel.cpp
+++ b/tests/auto/qitemselectionmodel/tst_qitemselectionmodel.cpp
@@ -1547,7 +1547,7 @@ void tst_QItemSelectionModel::resetModel()
model.reset();
QVERIFY(view.selectionModel()->selection().isEmpty());
- QVERIFY(view.selectionModel()->hasSelection());
+ QVERIFY(view.selectionModel()->hasSelection() == false);
view.selectionModel()->select(QItemSelection(model.index(0, 0), model.index(5, 5)), QItemSelectionModel::Select);