X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=fullscreenwindow.cpp;h=c63f003a0edd04b6e050926ed594795dcb694f4a;hb=74e2fba9252926d33bd5f37ec13c557af2ceca4d;hp=047c01a94c23f96fff48ca93ea3162b46659076f;hpb=6c8d9bb19213aee37517232ef889409200e53ac1;p=dorian diff --git a/fullscreenwindow.cpp b/fullscreenwindow.cpp index 047c01a..c63f003 100644 --- a/fullscreenwindow.cpp +++ b/fullscreenwindow.cpp @@ -17,9 +17,7 @@ FullScreenWindow::FullScreenWindow(QWidget *parent): AdopterWindow(parent) 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); @@ -35,18 +33,18 @@ FullScreenWindow::FullScreenWindow(QWidget *parent): AdopterWindow(parent) 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()