Fix buttons in lists on Maemo.
[dorian] / fullscreenwindow.h
1 #ifndef FULLSCREENWINDOW_H
2 #define FULLSCREENWINDOW_H
3
4 #include <QRect>
5 #include <QObject>
6
7 #include "adopterwindow.h"
8
9 class QWidget;
10 class QMouseEvent;
11 class QResizeEvent;
12 class TranslucentButton;
13
14 /** A full screen window with a restore button. */
15 class FullScreenWindow: public AdopterWindow
16 {
17     Q_OBJECT
18
19 public:
20     explicit FullScreenWindow(QWidget *parent);
21     void showFullScreen();
22
23 signals:
24     /** Emitted when the restore button is pressed. */
25     void restore();
26
27 protected:
28     void resizeEvent(QResizeEvent *e);
29
30 private:
31     TranslucentButton *restoreButton;
32 };
33
34 #endif // FULLSCREENWINDOW_H