From 21d55858dc41a30ba77381fe62a7bef0d3e956f7 Mon Sep 17 00:00:00 2001 From: Akos Polster Date: Sun, 28 Nov 2010 04:54:31 +0100 Subject: [PATCH] . --- adopterwindow.cpp | 35 +++++++++++++++++++++++------------ 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/adopterwindow.cpp b/adopterwindow.cpp index e51c506..e67ae7d 100644 --- a/adopterwindow.cpp +++ b/adopterwindow.cpp @@ -216,6 +216,17 @@ void AdopterWindow::showEvent(QShowEvent *e) { Trace t("AdopterWindow::showEvent"); +#ifdef Q_OS_SYMBIAN + if (toolBar) { + if (portrait()) { + qDebug() << "Show tool bar"; + toolBar->setVisible(true); + } else { + qDebug() << "Hide tool bar"; + toolBar->setVisible(false); + } + } +#endif // Q_OS_SYMBIAN QMainWindow::showEvent(e); #if defined(Q_WS_MAEMO_5) doGrabVolumeKeys(grabbingVolumeKeys); @@ -226,6 +237,18 @@ void AdopterWindow::showEvent(QShowEvent *e) void AdopterWindow::resizeEvent(QResizeEvent *event) { Trace t("AdopterWindow::resizeEvent"); +#ifdef Q_OS_SYMBIAN + if (toolBar) { + if (portrait()) { + qDebug() << "Show tool bar"; + toolBar->setVisible(true); + } else { + qDebug() << "Hide tool bar"; + toolBar->setVisible(false); + } + } +#endif // Q_OS_SYMBIAN + QMainWindow::resizeEvent(event); placeDecorations(); } @@ -281,18 +304,6 @@ void AdopterWindow::placeDecorations() { Trace t("AdopterWindow::placeDecorations"); -#ifdef Q_OS_SYMBIAN - if (toolBar) { - if (portrait()) { - qDebug() << "Show tool bar"; - toolBar->setVisible(true); - } else { - qDebug() << "Hide tool bar"; - toolBar->setVisible(false); - } - } -#endif // Q_OS_SYMBIAN - if (!hasBookView()) { return; } -- 1.7.9.5