test: migrate QAbstractItemModelTester to QRegularExpression
This is part of the migration of qtbase from QRexExp to QRegularExpression. Task-number: QTBUG-72587 Change-Id: I23bc9693fb9f553fd63d10687d51322394717ed7 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de> Reviewed-by: Konstantin Shegunov <kshegunov@gmail.com>
This commit is contained in:
parent
5174c8abae
commit
5398ce2432
@ -63,7 +63,7 @@ void tst_QAbstractItemModelTester::stringListModel()
|
|||||||
model.setStringList(QStringList() << "a" << "e" << "plop" << "b" << "c");
|
model.setStringList(QStringList() << "a" << "e" << "plop" << "b" << "c");
|
||||||
|
|
||||||
proxy.setDynamicSortFilter(true);
|
proxy.setDynamicSortFilter(true);
|
||||||
proxy.setFilterRegExp(QRegExp("[^b]"));
|
proxy.setFilterRegularExpression(QRegularExpression("[^b]"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void tst_QAbstractItemModelTester::treeWidgetModel()
|
void tst_QAbstractItemModelTester::treeWidgetModel()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user