BrushData color;
};
-struct Q_GUI_EXPORT IconValue
-{
- enum Mode { Normal, Disabled, Active, Selected }; // In sync with QIcon.
- enum State { On, Off };
-
- struct Q_GUI_EXPORT IconEntry
- {
- IconEntry() : mode(Normal) , state(On) {}
-
- Mode mode;
- State state;
- QString uri;
- };
-
- QList<IconEntry> entries;
-};
// 1. StyleRule - x:hover, y:clicked > z:checked { prop1: value1; prop2: value2; }
// 2. QVector<Selector> - x:hover, y:clicked z:checked
QSize sizeValue() const;
QRect rectValue() const;
QString uriValue() const;
- IconValue iconValue() const;
+ QIcon iconValue() const;
void borderImageValue(QString *image, int *cuts, TileMode *h, TileMode *v) const;
};
bool extractOutline(int *borders, QBrush *colors, BorderStyle *Styles, QSize *radii, int *offsets);
bool extractPalette(QBrush *fg, QBrush *sfg, QBrush *sbg, QBrush *abg);
int extractStyleFeatures();
- bool extractImage(QCss::IconValue *icon, Qt::Alignment *a, QSize *size);
+ bool extractImage(QIcon *icon, Qt::Alignment *a, QSize *size);
int lengthValue(const Declaration &decl);
return (index - 1) < symbols.count() ? symbols.at(index - 1).token : NONE;
}
- bool testTokenAndEndsWith(TokenType t, const QLatin1String &str);
+ bool testTokenAndEndsWith(TokenType t, QLatin1String str);
inline bool recordError() { errorIndex = index; return false; }
Q_DECLARE_METATYPE( QCss::BackgroundData )
Q_DECLARE_METATYPE( QCss::LengthData )
Q_DECLARE_METATYPE( QCss::BorderData )
-Q_DECLARE_METATYPE( QCss::IconValue )
#endif // QT_NO_CSSPARSER