20 #ifndef __QMLICONVIEW_H__ 21 #define __QMLICONVIEW_H__ 43 : QQuickPaintedItem(parent) {}
45 QVariant
icon()
const {
return QVariant::fromValue(_icon); }
52 void setActive(
bool val) { _active = val; update(); }
54 void paint(QPainter*)
override;
QIcon _icon
Definition: qmliconview.h:33
QVariant icon() const
Definition: qmliconview.h:45
Definition: qmliconview.h:29
Definition: aeolus.cpp:26
void setSelected(bool val)
Definition: qmliconview.h:49
void setIcon(QVariant val)
Definition: qmliconview.cpp:44
void paint(QPainter *) override
Definition: qmliconview.cpp:28
bool _active
Definition: qmliconview.h:35
bool selected() const
Definition: qmliconview.h:48
void setActive(bool val)
Definition: qmliconview.h:52
bool active() const
Definition: qmliconview.h:51
bool _selected
Definition: qmliconview.h:34
QColor _color
Definition: qmliconview.h:32