From 908e85cc85d18f56575ee040589bcd5745c62adb Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Fri, 18 Mar 2022 10:31:16 +0100 Subject: Replace uses of _qs with _s in sources and examples Task-number: QTBUG-101408 Change-Id: I48360ba3b23965cd3d90ac243c100a0656a4cde8 Reviewed-by: Marc Mutz --- src/widgets/styles/qstylesheetstyle.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/widgets/styles') diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index 54b7e3879a..2197c786a3 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -134,6 +134,8 @@ QT_BEGIN_NAMESPACE +using namespace Qt::StringLiterals; + using namespace QCss; @@ -1588,12 +1590,12 @@ public: if (propertyIndex == -1) { value = obj->property(name.toLatin1()); // might be a dynamic property if (!value.isValid()) { - if (name == u"class"_qs) { + if (name == "class"_L1) { QString className = QString::fromLatin1(obj->metaObject()->className()); if (className.contains(QLatin1Char(':'))) className.replace(QLatin1Char(':'), QLatin1Char('-')); valueStr = className; - } else if (name == u"style"_qs) { + } else if (name == "style"_L1) { QWidget *w = qobject_cast(obj); QStyleSheetStyle *proxy = w ? qt_styleSheet(w->style()) : nullptr; if (proxy) -- cgit v1.2.3