setAttribute(Qt::WA_Maemo5StackedWindow, true);
setAttribute(Qt::WA_Maemo5NonComposited, true);
#endif // Q_WS_MAEMO_5
-#ifndef Q_OS_SYMBIAN
- toolBar->hide();
-#endif
+ hideToolBar();
QFrame *frame = new QFrame(this);
QVBoxLayout *layout = new QVBoxLayout(frame);
layout->setMargin(0);
connect(restoreButton, SIGNAL(triggered()), this, SIGNAL(restore()));
}
-void FullScreenWindow::showFullScreen()
+void FullScreenWindow::showEvent(QShowEvent *e)
{
- Trace t("FullScreenWindow::showFullScreen");
- AdopterWindow::showFullScreen();
+ Trace t("FullScreenWindow::showEvent");
+ AdopterWindow::showEvent(e);
placeChildren();
}
void FullScreenWindow::resizeEvent(QResizeEvent *e)
{
Trace t("FullScreenWindow::resizeEvent");
- QTimer::singleShot(100, this, SLOT(placeChildren()));
AdopterWindow::resizeEvent(e);
+ placeChildren();
}
void FullScreenWindow::placeChildren()