- fullScreenWindow->leaveChildren();
- QList<QWidget *> otherChildren;
- otherChildren << progress << previousButton << nextButton;
- takeChildren(view, otherChildren);
-
- // Adjust geometry of decorations
-
- QRect geo = geometry();
- qDebug() << geo;
- int y = geo.height() - progress->thickness();
-#if defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
- bool hasToolBar = false;
-# if defined(Q_OS_SYMBIAN)
- hasToolBar =
- (QApplication::desktop()->width() < QApplication::desktop()->height());
- qDebug() << (hasToolBar? "Portrait": "Landscape");
-# endif
- if (!hasToolBar) {
- y -= toolBar->height();
- }
-#endif
- progress->setGeometry(0, y, geo.width(), y + progress->thickness());
-
-#if defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
- y = geo.height() - TranslucentButton::pixels;
- if (!hasToolBar) {
- y -= toolBar->height();
- }
- previousButton->setGeometry(0, y, TranslucentButton::pixels,
- TranslucentButton::pixels);
- nextButton->setGeometry(geo.width() - TranslucentButton::pixels, 0,
- TranslucentButton::pixels, TranslucentButton::pixels);
-#else
- previousButton->setGeometry(0, geo.height() - TranslucentButton::pixels,
- TranslucentButton::pixels, TranslucentButton::pixels);
- nextButton->setGeometry(geo.width() - TranslucentButton::pixels - 25,
- toolBar->height(), TranslucentButton::pixels,
- TranslucentButton::pixels);
-#endif // Q_WS_MAEMO_5
- qDebug() << "previousButton geometry" << previousButton->geometry();
-