More stagnation.
[dorian] / mainwindow.cpp
index 4d7aaf4..c8f5dfe 100755 (executable)
@@ -66,8 +66,6 @@ MainWindow::MainWindow(QWidget *parent):
                                        "bookmarks", tr("Bookmarks"), true);
     libraryAction = addToolBarAction(this, SLOT(showLibrary()),
                                      "library", tr("Library"), false);
-    rotateAction = addToolBarAction(this, SLOT(rotate()),
-                                    "rotate", tr("Rotate"), true);
 
 #ifdef Q_WS_MAEMO_5
     settingsAction = menuBar()->addAction(tr("Settings"));
@@ -81,7 +79,9 @@ MainWindow::MainWindow(QWidget *parent):
                                       "developer", tr("Developer"));
 #endif
 
-    addToolBarSpace();
+    rotateAction = addToolBarAction(this, SLOT(rotate()),
+                                    "rotate", tr("Rotate"), true);
+    // addToolBarSpace();
     fullScreenAction = addToolBarAction(this, SLOT(showBig()),
         "view-fullscreen", tr("Full screen"), true);
 
@@ -185,13 +185,13 @@ void MainWindow::showRegular()
     // Re-parent children
     fullScreenWindow->leaveBookView();
     takeBookView(view, prog, prev, next);
-
     fullScreenWindow->hide();
-    show();
 
-#if defined(Q_OS_SYMBIAN)
-    activateWindow();
+#ifdef Q_OS_SYMBIAN
+    view->setFixedSize(Platform::availableSize().width(),
+        Platform::availableSize().height() - Platform::softKeyHeight());
 #endif
+    show();
 }
 
 void MainWindow::showBig()
@@ -201,13 +201,12 @@ void MainWindow::showBig()
     // Re-parent children
     leaveBookView();
     fullScreenWindow->takeBookView(view, prog, prev, next);
-
-    fullScreenWindow->showFullScreen();
     hide();
 
 #ifdef Q_OS_SYMBIAN
-    fullScreenWindow->activateWindow();
+    view->setFixedSize(Platform::size());
 #endif
+    fullScreenWindow->showFullScreen();
 }
 
 void MainWindow::setCurrentBook(const QModelIndex &current)
@@ -363,11 +362,13 @@ void MainWindow::about()
     label->setTextFormat(Qt::RichText);
     label->setOpenExternalLinks(true);
     label->setWordWrap(true);
-    label->setText(tr("<b>Dorian %1</b><br><br>Copyright &copy; 2010 "
-        "Akos Polster &lt;akos@pipacs.com&gt;<br>"
-        "Licensed under GNU General Public License, Version 3<br>"
-        "Source code:<br><a href='http://dorian.garage.maemo.org/'>"
-        "dorian.garage.maemo.org</a>").arg(version));
+    label->setText(tr("<b>Dorian %1</b><br><br>"
+        "Copyright &copy; 2010-2011 by "
+        "Akos Polster &lt;akos@pipacs.com&gt;<br><br>"
+        "Licensed under GNU General Public License, Version 3<br><br>"
+        "<a href='http://dorian.garage.maemo.org/'>"
+        "dorian.garage.maemo.org</a><br><br>"
+        ).arg(version));
     aboutDialog->addWidget(label);
     aboutDialog->addStretch();
     aboutDialog->show();