{
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);
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();
}
{
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;
}