f7844a4503664ab154329d2500a0f08e829d9949
[dorian] / fullscreenwindow.h
1 #ifndef FULLSCREENWINDOW_H
2 #define FULLSCREENWINDOW_H
3
4 #include <QMainWindow>
5
6 class TranslucentButton;
7
8 class FullScreenWindow: public QMainWindow
9 {
10     Q_OBJECT
11 public:
12     explicit FullScreenWindow(QWidget *child, QWidget *parent);
13     void showFullScreen();
14
15 signals:
16     void restore();
17
18 public slots:
19
20 protected:
21 #ifdef Q_WS_MAEMO_5
22 #   define MOUSE_ACTIVATE_EVENT mouseReleaseEvent
23 #else
24 #   define MOUSE_ACTIVATE_EVENT mousePressEvent
25 #endif
26     virtual void MOUSE_ACTIVATE_EVENT(QMouseEvent *event);
27     virtual void resizeEvent(QResizeEvent *event);
28     QRect fullScreenZone() const;
29     TranslucentButton *restoreButton;
30 };
31
32 #endif // FULLSCREENWINDOW_H