Small Symbian improvements.
authorAkos Polster <akos@pipacs.com>
Sat, 16 Oct 2010 22:51:09 +0000 (00:51 +0200)
committerAkos Polster <akos@pipacs.com>
Sat, 16 Oct 2010 22:51:09 +0000 (00:51 +0200)
bookview.cpp
librarydialog.cpp
platform.cpp
widgets/fullscreenwindow.cpp

index dbc9ab9..121fa50 100644 (file)
@@ -39,12 +39,12 @@ BookView::BookView(QWidget *parent):
     settings()->setDefaultTextEncoding("utf-8");
     page()->setContentEditable(false);
 
-#if defined(Q_WS_MAEMO_5)
-    // Suppress unwanted text selections on Maemo
+#if defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
+    // Suppress unwanted text selections on Maemo and Symbian
     installEventFilter(this);
 #endif
     QWebFrame *frame = page()->mainFrame();
-#if defined(Q_WS_MAEMO_5)
+#if defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
     frame->setScrollBarPolicy(Qt::Vertical, Qt::ScrollBarAlwaysOff);
 #endif
     frame->setScrollBarPolicy(Qt::Horizontal, Qt::ScrollBarAlwaysOff);
index 9ae3123..0d7eeb4 100644 (file)
@@ -19,6 +19,7 @@
 #include "trace.h"
 #include "bookfinder.h"
 #include "searchdialog.h"
+#include "platform.h"
 
 LibraryDialog::LibraryDialog(QWidget *parent): ListWindow(parent)
 {
@@ -52,6 +53,10 @@ LibraryDialog::LibraryDialog(QWidget *parent): ListWindow(parent)
     progress->setMinimumDuration(0);
     progress->setWindowModality(Qt::WindowModal);
     progress->setCancelButton(0);
+#ifdef Q_WS_S60
+    progress->setFixedWidth(
+            QApplication::desktop()->availableGeometry().width());
+#endif
 
     connect(Library::instance(), SIGNAL(nowReadingChanged()),
             this, SLOT(onCurrentBookChanged()));
index b86a359..c65bae8 100644 (file)
@@ -3,6 +3,7 @@
 #endif
 
 #include <QDir>
+#include <QtGui>
 
 #include "platform.h"
 
index cc3f0ec..4382ebb 100644 (file)
@@ -11,7 +11,9 @@ FullScreenWindow::FullScreenWindow(QWidget *parent): AdopterWindow(parent)
     setAttribute(Qt::WA_Maemo5StackedWindow, true);
     setAttribute(Qt::WA_Maemo5NonComposited, true);
 #endif // Q_WS_MAEMO_5
+#ifndef Q_OS_SYMBIAN
     toolBar->hide();
+#endif
     QFrame *frame = new QFrame(this);
     QVBoxLayout *layout = new QVBoxLayout(frame);
     layout->setMargin(0);