aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlmetatype
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-03-21 10:21:18 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-04-29 09:47:43 +0200
commit2c9c1590e6c9dc59bd786f4b41af32f1994bed2d (patch)
tree7cc1302426732093f1c88c1d7621a95854ade0e2 /tests/auto/qml/qqmlmetatype
parentecc87ea07723998dcfa947353e4259ec8d057035 (diff)
Replace uses of deprecated _qs with _s/QStringLiteral
Task-number: QTBUG-101408 Change-Id: Ic925751b73f52d8fa5add5cacc52d6dd6ea2dc27 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests/auto/qml/qqmlmetatype')
-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;