QStyleSheetStyle: Fix icon properties.
Convert icon structure returned by the CSS parser. Change-Id: I19b846c6cb0ec19045b6d07b3caa5ecfac75ca86 Reviewed-by: Mark Brand <mabrand@mabrand.nl> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
parent
39e0d35fe9
commit
c8ba6a49da
@ -2528,8 +2528,7 @@ void QStyleSheetStyle::setProperties(QWidget *w)
|
||||
QVariant v;
|
||||
const QVariant value = w->property(property.toLatin1());
|
||||
switch (value.type()) {
|
||||
// ### Qt 5
|
||||
// case QVariant::Icon: v = decl.iconValue(); break;
|
||||
case QVariant::Icon: v = cssIconValueToIcon(decl.iconValue()); break;
|
||||
case QVariant::Image: v = QImage(decl.uriValue()); break;
|
||||
case QVariant::Pixmap: v = QPixmap(decl.uriValue()); break;
|
||||
case QVariant::Rect: v = decl.rectValue(); break;
|
||||
|
Loading…
Reference in New Issue
Block a user