From 2c9c1590e6c9dc59bd786f4b41af32f1994bed2d Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Mon, 21 Mar 2022 10:21:18 +0100 Subject: Replace uses of deprecated _qs with _s/QStringLiteral Task-number: QTBUG-101408 Change-Id: Ic925751b73f52d8fa5add5cacc52d6dd6ea2dc27 Reviewed-by: Ulf Hermann --- tests/auto/qml/qqmlmetatype/tst_qqmlmetatype.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/auto/qml/qqmlmetatype') 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 #include +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 hello(u"Hello, World!"_qs); + QProperty hello(u"Hello, World!"_s); QQmlAnyBinding binding; binding = Qt::makePropertyBinding(hello); interceptor->interceptedBindable = false; -- cgit v1.2.3