1 #ifndef WIDGETS_ICONBUTTON_H 2 #define WIDGETS_ICONBUTTON_H 6 #include <QAbstractButton> 14 Q_PROPERTY(QPixmap pixmap READ pixmap WRITE setPixmap)
17 explicit IconButton(QWidget *parent =
nullptr);
20 const QPixmap &pixmap()
const;
21 void setPixmap(
const QPixmap &pixmap);
22 QSize sizeHint()
const;
25 void paintEvent(QPaintEvent *event);
26 void keyPressEvent(QKeyEvent *event);
27 void keyReleaseEvent(QKeyEvent *event);
52 #endif // WIDGETS_ICONBUTTON_H
#define QT_UTILITIES_EXPORT
Marks the symbol to be exported by the qtutilities library.