diff options
author | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-03-21 10:21:18 +0100 |
---|---|---|
committer | Sona Kurazyan <sona.kurazyan@qt.io> | 2022-04-29 09:47:43 +0200 |
commit | 2c9c1590e6c9dc59bd786f4b41af32f1994bed2d (patch) | |
tree | 7cc1302426732093f1c88c1d7621a95854ade0e2 /tests/auto/qml/qmllint/lintplugin.cpp | |
parent | ecc87ea07723998dcfa947353e4259ec8d057035 (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/qmllint/lintplugin.cpp')
-rw-r--r-- | tests/auto/qml/qmllint/lintplugin.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/qml/qmllint/lintplugin.cpp b/tests/auto/qml/qmllint/lintplugin.cpp index 9fe0789f41..91f3f41749 100644 --- a/tests/auto/qml/qmllint/lintplugin.cpp +++ b/tests/auto/qml/qmllint/lintplugin.cpp @@ -28,6 +28,8 @@ #include "lintplugin.h" +using namespace Qt::StringLiterals; + class ElementTest : public QQmlSA::ElementPass { public: @@ -43,13 +45,13 @@ public: void run(const QQmlSA::Element &element) override { - auto property = element->property(u"radius"_qs); - if (!property.isValid() || element->property(u"radius"_qs).typeName() != u"double") { + auto property = element->property(u"radius"_s); + if (!property.isValid() || element->property(u"radius"_s).typeName() != u"double") { emitWarning(u"Failed to verify radius property", element->sourceLocation()); return; } - auto bindings = element->propertyBindings(u"radius"_qs); + auto bindings = element->propertyBindings(u"radius"_s); if (bindings.isEmpty() || bindings.constFirst().numberValue() != 5) { emitWarning(u"Failed to verify radius property binding", element->sourceLocation()); return; |