#ifdef Q_WS_MAEMO_5
setAttribute(Qt::WA_Maemo5StackedWindow, true);
#endif
+
+#ifndef Q_OS_SYMBIAN
setWindowTitle("Dorian");
+#endif
// Central widget. Must be an intermediate, because the book view widget
// can be re-parented later
// Book view
view = new BookView(this);
- view->show();
// Tool bar actions
// Load library, upgrade it if needed
libraryProgress = new ProgressDialog(tr("Upgrading library"), this);
Library *library = Library::instance();
- connect(library, SIGNAL(beginUpgrade(int)), this, SLOT(onBeginUpgrade(int)));
+ connect(library, SIGNAL(beginUpgrade(int)),
+ this, SLOT(onBeginUpgrade(int)));
connect(library, SIGNAL(upgrading(const QString &)),
this, SLOT(onUpgrading(const QString &)));
connect(library, SIGNAL(endUpgrade()), this, SLOT(onEndUpgrade()));
}
}
-void MainWindow::closeEvent(QCloseEvent *event)
-{
- TRACE;
- view->setLastBookmark();
- AdopterWindow::closeEvent(event);
-}
-
void MainWindow::onSettingsChanged(const QString &key)
{
#if defined(Q_WS_MAEMO_5)