mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-07 17:50:59 +08:00
qt 6.6.0 clean
This commit is contained in:
@ -31,6 +31,7 @@ class tst_QSortFilterProxyModel : public QObject
|
||||
private slots:
|
||||
void clearFilter_data();
|
||||
void clearFilter();
|
||||
void setSourceModel();
|
||||
|
||||
private:
|
||||
QStringList m_numberList; ///< Cache the strings for efficiency.
|
||||
@ -93,6 +94,19 @@ void tst_QSortFilterProxyModel::clearFilter()
|
||||
QCOMPARE(proxy.rowCount(), itemCount);
|
||||
}
|
||||
|
||||
void tst_QSortFilterProxyModel::setSourceModel()
|
||||
{
|
||||
QStringListModel model1;
|
||||
QStringListModel model2;
|
||||
|
||||
QSortFilterProxyModel proxy;
|
||||
|
||||
QBENCHMARK {
|
||||
proxy.setSourceModel(&model1);
|
||||
proxy.setSourceModel(&model2);
|
||||
}
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_QSortFilterProxyModel)
|
||||
|
||||
#include "tst_bench_qsortfilterproxymodel.moc"
|
||||
|
Reference in New Issue
Block a user