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);
#include "trace.h"
#include "bookfinder.h"
#include "searchdialog.h"
+#include "platform.h"
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()));
#endif
#include <QDir>
+#include <QtGui>
#include "platform.h"
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);