Make returning from full screen mode even more obvious.
[dorian] / translucentbutton.h
1 #ifndef TRANSLUCENTBUTTON_H
2 #define TRANSLUCENTBUTTON_H
3
4 #include <QtGui>
5 #include <QString>
6
7 class TranslucentButton: public QWidget
8 {
9     Q_OBJECT
10     Q_PROPERTY(qreal opacity READ opacity WRITE setOpacity)
11
12 public:
13     explicit TranslucentButton(const QString &name, QWidget *parent);
14     qreal opacity() const {return mOpacity;}
15     void setOpacity(qreal opacity);
16
17 public slots:
18     void flash();
19
20 protected:
21     virtual void paintEvent(QPaintEvent *);
22
23 private:
24     QString name;
25     qreal mOpacity;
26 };
27
28 #endif // TRANSLUCENTBUTTON_H