X-Git-Url: http://git.maemo.org/git/?p=dorian;a=blobdiff_plain;f=fullscreenwindow.cpp;h=145b4253c963c247df6066cbc244e1d25578af56;hp=a80eed7bb2a33256e6ca0d7a277ad8c494bc6db9;hb=HEAD;hpb=ac72b9ea7af92a9936a8e023a1923cdf94558d54 diff --git a/fullscreenwindow.cpp b/fullscreenwindow.cpp index a80eed7..145b425 100644 --- a/fullscreenwindow.cpp +++ b/fullscreenwindow.cpp @@ -12,11 +12,11 @@ static const int MARGIN = 9; FullScreenWindow::FullScreenWindow(QWidget *parent): AdopterWindow(parent) { TRACE; - Q_ASSERT(parent); -#ifdef Q_WS_MAEMO_5 + +#if defined(Q_WS_MAEMO_5) setAttribute(Qt::WA_Maemo5StackedWindow, true); setAttribute(Qt::WA_Maemo5NonComposited, true); -#endif // Q_WS_MAEMO_5 +#endif QFrame *frame = new QFrame(this); QVBoxLayout *layout = new QVBoxLayout(frame); layout->setMargin(0); @@ -35,15 +35,23 @@ FullScreenWindow::FullScreenWindow(QWidget *parent): AdopterWindow(parent) void FullScreenWindow::showEvent(QShowEvent *e) { Trace t("FullScreenWindow::showEvent"); - AdopterWindow::showEvent(e); + qDebug() << "Softkeys visible?" + << (windowFlags() & Qt::WindowSoftkeysVisibleHint); placeChildren(); + AdopterWindow::showEvent(e); } void FullScreenWindow::resizeEvent(QResizeEvent *e) { Trace t("FullScreenWindow::resizeEvent"); - AdopterWindow::resizeEvent(e); placeChildren(); + AdopterWindow::resizeEvent(e); +} + +void FullScreenWindow::closeEvent(QCloseEvent *e) +{ + Trace t("FullscreenWindow::closeEvent"); + AdopterWindow::closeEvent(e); } void FullScreenWindow::placeChildren()