summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2022-03-18 10:31:16 +0100
committerSona Kurazyan <sona.kurazyan@qt.io>2022-04-19 19:12:20 +0200
commit908e85cc85d18f56575ee040589bcd5745c62adb (patch)
treea7f28171c1465ea226018b73122f7b3e50721c18 /src/widgets/styles
parenta1d8b9023f499560b967965ef52af2a7de981727 (diff)
Replace uses of _qs with _s in sources and examples
Task-number: QTBUG-101408 Change-Id: I48360ba3b23965cd3d90ac243c100a0656a4cde8 Reviewed-by: Marc Mutz <marc.mutz@qt.io>
Diffstat (limited to 'src/widgets/styles')
-rw-r--r--src/widgets/styles/qstylesheetstyle.cpp6
1 files changed, 4 insertions, 2 deletions
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<QWidget *>(obj);
QStyleSheetStyle *proxy = w ? qt_styleSheet(w->style()) : nullptr;
if (proxy)