qss: fix parsing of icon style hints
Use cssIconValueToIcon (see 5a0eb4e768
) to
retrieve the QIcon value from the css parser.
Task-number: QTBUG-25120
Change-Id: Ie7c6691514a4b35d416ca09ccf7966689de831c1
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
5c9ba41f71
commit
b53ea69731
@ -991,9 +991,8 @@ QRenderRule::QRenderRule(const QVector<Declaration> &declarations, const QWidget
|
||||
hintValue = (int) decl.colorValue().rgba();
|
||||
} else if (hintName.endsWith(QLatin1String("size"))) {
|
||||
hintValue = decl.sizeValue();
|
||||
// ### Qt5
|
||||
// } else if (hintName.endsWith(QLatin1String("icon"))) {
|
||||
// hintValue = decl.iconValue();
|
||||
} else if (hintName.endsWith(QLatin1String("icon"))) {
|
||||
hintValue = cssIconValueToIcon(decl.iconValue());
|
||||
} else if (hintName == QLatin1String("button-layout")
|
||||
&& decl.d->values.count() != 0 && decl.d->values.at(0).type == Value::String) {
|
||||
hintValue = subControlLayout(decl.d->values.at(0).variant.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user