StyledIconEngine
Qualified name: mv::util::StyledIconEngine
-
class StyledIconEngine : public QIconEngine
Styled icon engine class.
Icon engine for creating theme-specific icons of the StyledIcon.
- Author
Thomas Kroes
Public Functions
-
StyledIconEngine(const StyledIconSettings &styledIconSettings)
Construct from
styledIconSettings.- Parameters:
styledIconSettings – Reference to styled icon settings
-
void paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state) override
Paint the icon.
- Parameters:
painter – Pointer to painter
rect – Rectangle to paint
mode – Mode of the icon
state – State of the icon
-
QPixmap pixmap(const QSize &size, QIcon::Mode mode, QIcon::State state) override
Get pixmap.
- Parameters:
size – Size of the pixmap
mode – Mode of the icon
state – State of the icon
- Returns:
Pixmap
-
QIconEngine *clone() const override
Clone the theme icon engine.
- Returns:
Pointer to cloned theme icon engine