-#ifdef Q_WS_MAEMO_5
- setAttribute(Qt::WA_Maemo5PortraitOrientation, parentWidget()->
- testAttribute(Qt::WA_Maemo5PortraitOrientation));
- setAttribute(Qt::WA_Maemo5LandscapeOrientation, parentWidget()->
- testAttribute(Qt::WA_Maemo5LandscapeOrientation));
-#endif // Q_WS_MAEMO_5
- QWidget::showFullScreen();
- restoreButton->flash();
-}
-
-void FullScreenWindow::MOUSE_ACTIVATE_EVENT(QMouseEvent *event)
-{
- Trace t("FullScreenWindow::MOUSE_ACTIVATE_EVENT");
- if (fullScreenZone().contains(event->x(), event->y())) {
- emit restore();
- } else {
- restoreButton->flash();
- }
- QMainWindow::MOUSE_ACTIVATE_EVENT(event);
-}
-
-QRect FullScreenWindow::fullScreenZone() const
-{
- return QRect(width() / 2 - 45, height() - 104, 95, 95);