1 #ifndef TRANSLUCENTBUTTON_H
2 #define TRANSLUCENTBUTTON_H
13 * A button that is transparent, but can temporarily made opaque by flashing it.
15 class TranslucentButton: public QLabel
20 static const int pixels;
21 explicit TranslucentButton(const QString &iconName, QWidget *parent);
24 void flash(int duration = 3000);
31 void paintEvent(QPaintEvent *);
32 void mouseReleaseEvent(QMouseEvent *);
38 #endif // TRANSLUCENTBUTTON_H