Mercurial > trustbridge
diff ui/textoverlaybutton.h @ 932:57371f2e8dae
(issue72) Set background image as pixmap in textoverlayicon
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 22 Aug 2014 16:20:25 +0200 |
parents | b0929968562a |
children | 78798d3af8f0 |
line wrap: on
line diff
--- a/ui/textoverlaybutton.h Fri Aug 22 16:19:46 2014 +0200 +++ b/ui/textoverlaybutton.h Fri Aug 22 16:20:25 2014 +0200 @@ -12,6 +12,7 @@ #include <QToolButton> #include <QString> +#include <QPixmap> class QPaintEvent; @@ -27,9 +28,11 @@ public slots: void setOverlay (const QString& text) {mOverlay = text; repaint();} + void setBackgroundIcon (const QString& iconPath); private: QString mOverlay; + QPixmap mBackground; }; #endif // UI_TEXTOVERLAYBUTTON_H