1 #ifndef TRANSLUCENTBUTTON_H
2 #define TRANSLUCENTBUTTON_H
13 * A button that is transparent, but can temporarily be made opaque by
16 class TranslucentButton: public QLabel
21 explicit TranslucentButton(const QString &iconName, QWidget *parent);
23 static const int pixels;
24 static const int elevatorInterval;
27 void flash(int duration = 700);
34 void paintEvent(QPaintEvent *);
35 void mouseReleaseEvent(QMouseEvent *);
36 void timerEvent(QTimerEvent *e);
44 #endif // TRANSLUCENTBUTTON_H