test: migrate QFontComboBox test to QRegularExpression
This is part of the migration of qtbase from QRexExp to QRegularExpression. Task-number: QTBUG-72587 Change-Id: I2e1b42c09db88da64ec62aee7906f4c368e5bcbb Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
5398ce2432
commit
6ff2e0e718
@ -108,7 +108,7 @@ void tst_QFontComboBox::currentFont()
|
||||
QFont oldCurrentFont = box.currentFont();
|
||||
|
||||
box.setCurrentFont(currentFont);
|
||||
QRegExp foundry(" \\[.*\\]");
|
||||
QRegularExpression foundry(" \\[.*\\]");
|
||||
if (!box.currentFont().family().contains(foundry)) {
|
||||
QCOMPARE(box.currentFont(), currentFont);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user