aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktextinput
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2020-04-02 11:00:06 +0200
committerLars Knoll <lars.knoll@qt.io>2020-04-03 21:01:53 +0200
commitcc6c5ae70b1389ed86301bbfc156628e1d3abbcd (patch)
tree41238618977b44c67c796fb34078d6c3084d5e55 /tests/auto/quick/qquicktextinput
parent55be24d6b6e66bd54168021f5a467ba4da73b2c6 (diff)
Port the remaining tests from QRegExp to QRegularExpression
Change-Id: If258701759c5da206948407feccd94e323af6b36 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tests/auto/quick/qquicktextinput')
-rw-r--r--tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp
index 18b7903eeb..d6f2b6ef6a 100644
--- a/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp
+++ b/tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp
@@ -6021,17 +6021,17 @@ void tst_qquicktextinput::QTBUG_19956_regexp()
input->setFocus(true);
QVERIFY(input->hasActiveFocus());
- window.rootObject()->setProperty("regexvalue", QRegExp("abc"));
- QCOMPARE(window.rootObject()->property("regexvalue").toRegExp(), QRegExp("abc"));
+ window.rootObject()->setProperty("regexvalue", QRegularExpression("abc"));
+ QCOMPARE(window.rootObject()->property("regexvalue").toRegularExpression(), QRegularExpression("abc"));
QCOMPARE(window.rootObject()->property("text").toString(), QString("abc"));
QVERIFY(window.rootObject()->property("acceptableInput").toBool());
- window.rootObject()->setProperty("regexvalue", QRegExp("abcd"));
- QCOMPARE(window.rootObject()->property("regexvalue").toRegExp(), QRegExp("abcd"));
+ window.rootObject()->setProperty("regexvalue", QRegularExpression("abcd"));
+ QCOMPARE(window.rootObject()->property("regexvalue").toRegularExpression(), QRegularExpression("abcd"));
QVERIFY(!window.rootObject()->property("acceptableInput").toBool());
- window.rootObject()->setProperty("regexvalue", QRegExp("abc"));
- QCOMPARE(window.rootObject()->property("regexvalue").toRegExp(), QRegExp("abc"));
+ window.rootObject()->setProperty("regexvalue", QRegularExpression("abc"));
+ QCOMPARE(window.rootObject()->property("regexvalue").toRegularExpression(), QRegularExpression("abc"));
QVERIFY(window.rootObject()->property("acceptableInput").toBool());
}