diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2017-08-24 18:50:59 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2018-01-09 21:12:58 +0000 |
commit | ff25a7ec056d3381e04251eb65a59c46afe79e08 (patch) | |
tree | e952e718b9f23b01d6c5970f62acfd61122c7a18 /tests/auto/corelib/itemmodels/qsortfilterproxymodel | |
parent | 81566ca9aa525e83810994a567fddcdbc9c2d22c (diff) |
QAbstractItemModelTester: fix the autotests
Move the modeltest autotest in the right place, and fix the
other autotests that were using it to use the version now in QtTestLib.
Change-Id: Ic6838945f616d580f357c872ce0956c341be3b16
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'tests/auto/corelib/itemmodels/qsortfilterproxymodel')
-rw-r--r-- | tests/auto/corelib/itemmodels/qsortfilterproxymodel/qsortfilterproxymodel.pro | 6 | ||||
-rw-r--r-- | tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/auto/corelib/itemmodels/qsortfilterproxymodel/qsortfilterproxymodel.pro b/tests/auto/corelib/itemmodels/qsortfilterproxymodel/qsortfilterproxymodel.pro index 099f666def..dfa8b9fa1b 100644 --- a/tests/auto/corelib/itemmodels/qsortfilterproxymodel/qsortfilterproxymodel.pro +++ b/tests/auto/corelib/itemmodels/qsortfilterproxymodel/qsortfilterproxymodel.pro @@ -2,8 +2,8 @@ CONFIG += testcase TARGET = tst_qsortfilterproxymodel QT += widgets testlib -mtdir = ../../../other/modeltest +mtdir = ../../../other/qabstractitemmodelutils INCLUDEPATH += $$PWD/$${mtdir} -SOURCES += tst_qsortfilterproxymodel.cpp $${mtdir}/dynamictreemodel.cpp $${mtdir}/modeltest.cpp -HEADERS += $${mtdir}/dynamictreemodel.h $${mtdir}/modeltest.h +SOURCES += tst_qsortfilterproxymodel.cpp $${mtdir}/dynamictreemodel.cpp +HEADERS += $${mtdir}/dynamictreemodel.h diff --git a/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp b/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp index dd5394d452..1acedf4271 100644 --- a/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp +++ b/tests/auto/corelib/itemmodels/qsortfilterproxymodel/tst_qsortfilterproxymodel.cpp @@ -28,7 +28,6 @@ #include <QtTest/QtTest> #include "dynamictreemodel.h" -#include "modeltest.h" #include <QtCore/QCoreApplication> #include <QtGui/QStandardItem> @@ -3312,7 +3311,7 @@ void tst_QSortFilterProxyModel::filteredColumns() FilteredColumnProxyModel *proxy = new FilteredColumnProxyModel(this); proxy->setSourceModel(model); - new ModelTest(proxy, this); + new QAbstractItemModelTester(proxy, this); ModelInsertCommand *insertCommand = new ModelInsertCommand(model, this); insertCommand->setNumCols(2); @@ -3351,7 +3350,7 @@ void tst_QSortFilterProxyModel::headerDataChanged() QSortFilterProxyModel *proxy = new QSortFilterProxyModel(this); proxy->setSourceModel(model); - new ModelTest(proxy, this); + new QAbstractItemModelTester(proxy, this); model->emitHeaderDataChanged(); } @@ -4129,7 +4128,7 @@ void tst_QSortFilterProxyModel::resortingDoesNotBreakTreeModels() proxy.sort(0); proxy.setSourceModel(treeModel); - ModelTest modelTest(&proxy); + QAbstractItemModelTester modelTester(&proxy); QCOMPARE(proxy.rowCount(), 2); e1->setText("entry1"); |