use QStringLiteral
Change-Id: I0f2b6ff758524e872d38dcbdc9335264431e3dc6 Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
This commit is contained in:
parent
dedd4a7a7c
commit
6c2c6a48e7
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user