diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-04-02 11:00:06 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-04-03 21:01:53 +0200 |
commit | cc6c5ae70b1389ed86301bbfc156628e1d3abbcd (patch) | |
tree | 41238618977b44c67c796fb34078d6c3084d5e55 /tests/auto/quick/qquicktextinput | |
parent | 55be24d6b6e66bd54168021f5a467ba4da73b2c6 (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.cpp | 12 |
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()); } |