Use QAbstractItemModelTester in all QSortFilterProxyModel tests

This patch installs a QAbstractItemModelTester in the
QSortFilterProxyModel tests.

Change-Id: I9bdcc21ba12f919c91c5b9514a5f4362437318c2
Reviewed-by: David Faure <david.faure@kdab.com>
This commit is contained in:
Andreas Buhr 2021-12-08 15:53:47 +01:00
parent ae6dc7d6df
commit 72e802f3b0

View File

@ -72,6 +72,7 @@ void tst_QSortFilterProxyModel::initTestCase()
m_model = new QStandardItemModel(0, 1);
m_proxy = new QSortFilterProxyModel();
m_proxy->setSourceModel(m_model);
new QAbstractItemModelTester(m_proxy, this);
}
void tst_QSortFilterProxyModel::cleanupTestCase()