Skip to content

Commit

Permalink
test: migrate ModelsToTest to QRegularExpression
Browse files Browse the repository at this point in the history
This is part of the migration of qtbase from QRexExp to
QRegularExpression.

Task-number: QTBUG-72587
Change-Id: Ifea720470541000481fbacc510b4cb589c9990d9
Reviewed-by: Christian Ehrlicher <[email protected]>
 
 
 
 
 
Reviewed-by: Luca Beldi <[email protected]>
  • Loading branch information
sgaist committed Jun 10, 2019
1 parent 16cc3ea commit 1e21867
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/auto/corelib/itemmodels/qitemmodel/modelstotest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ QAbstractItemModel *ModelsToTest::createModel(const QString &modelType)
QStandardItemModel *standardItemModel = new QStandardItemModel;
model->setSourceModel(standardItemModel);
populateTestArea(model);
model->setFilterRegExp(QRegExp("(^$|I.*)"));
model->setFilterRegularExpression(QRegularExpression("(^$|I.*)"));
return model;
}

Expand Down

0 comments on commit 1e21867

Please sign in to comment.