aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp')
-rw-r--r--tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp b/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp
index 497478b095..7bcfc6c3ac 100644
--- a/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp
+++ b/tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp
@@ -39,6 +39,8 @@
#include <private/qqmlanybinding_p.h>
#include <QtQuickTestUtils/private/qmlutils_p.h>
+using namespace Qt::StringLiterals;
+
class tst_qqmlmetatype : public QQmlDataTest
{
Q_OBJECT
@@ -380,7 +382,7 @@ void tst_qqmlmetatype::interceptorAPI()
QVERIFY(interceptor->interceptedWrite);
QQmlProperty objectName(obj.get(), "objectName");
- QProperty<QString> hello(u"Hello, World!"_qs);
+ QProperty<QString> hello(u"Hello, World!"_s);
QQmlAnyBinding binding;
binding = Qt::makePropertyBinding(hello);
interceptor->interceptedBindable = false;