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 explicit TranslucentButton(const QString &iconName, QWidget *parent);
22 static const int pixels;
23 static const int elevatorInterval;
26 void flash(int duration = 700);
33 void paintEvent(QPaintEvent *);
34 void mouseReleaseEvent(QMouseEvent *);
35 void timerEvent(QTimerEvent *e);
44 #endif // TRANSLUCENTBUTTON_H