From 6c2c6a48e730888760d2328f18f2be81d6dee6d3 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Tue, 13 Mar 2012 10:32:58 +0100 Subject: [PATCH] use QStringLiteral Change-Id: I0f2b6ff758524e872d38dcbdc9335264431e3dc6 Reviewed-by: Robin Burchell --- src/widgets/styles/qstylesheetstyle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/styles/qstylesheetstyle.cpp b/src/widgets/styles/qstylesheetstyle.cpp index c909def969..15e03af69b 100644 --- a/src/widgets/styles/qstylesheetstyle.cpp +++ b/src/widgets/styles/qstylesheetstyle.cpp @@ -2511,7 +2511,7 @@ void QStyleSheetStyle::setProperties(QWidget *w) for (int i = 0; i < decls.count(); i++) { const Declaration &decl = decls.at(i); QString property = decl.d->property; - if (!property.startsWith(QLatin1String("qproperty-"), Qt::CaseInsensitive)) + if (!property.startsWith(QStringLiteral("qproperty-"), Qt::CaseInsensitive)) continue; property.remove(0, 10); // strip "qproperty-" const QVariant value = w->property(property.toLatin1());