51 class ImageButton :
public QPushButton
57 void sigPixmapChanged();
61 explicit ImageButton(QWidget* parent=
nullptr);
62 ~ImageButton()
override;
64 QPixmap pixmap()
const;
65 int verticalPadding()
const;
66 void setFadingEnabled(
bool b);
69 void showDefaultPixmap();
70 void setPixmap(
const QPixmap& pm);
71 void setPixmapPath(
const QString& path);
72 void setCoverData(
const QByteArray& data,
const QString& mimetype);
76 void byteconverterFinished();
79 using QPushButton::setIcon;
80 using QPushButton::icon;
83 void paintEvent(QPaintEvent* e)
override;
84 void resizeEvent(QResizeEvent* e)
override;
85 void mouseMoveEvent(QMouseEvent* e)
override;
86 void mouseReleaseEvent(QMouseEvent* event)
override;