{
TRACE;
- // Monitor settings
+ // Monitor settings changes
connect(Settings::instance(), SIGNAL(valueChanged(const QString &)),
this, SLOT(onSettingsChanged(const QString &)));
bookView = view;
bookView->setParent(this);
-#ifndef Q_OS_SYMBIAN
centralWidget()->layout()->addWidget(bookView);
-#endif
// bookView->show();
progress = prog;
}
// bookView->hide();
-#ifndef Q_OS_SYMBIAN
centralWidget()->layout()->removeWidget(bookView);
-#endif
bookView = 0;
progress = 0;
nextButton = 0;
#if defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
// Restore previous reading position
if (bookView) {
- QTimer::singleShot(110, bookView, SLOT(restoreLastBookmark()));
+ bookView->scheduleRestoreLastBookmark();
}
#endif // defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
}
if (bookView) {
bookView->setLastBookmark();
}
+ hide();
MainBase::closeEvent(event);
}
void AdopterWindow::keyPressEvent(QKeyEvent *event)
{
- TRACE;
+ Trace t("AdopterWindow::keyPressEvent");
+
switch (event->key()) {
case Qt::Key_PageDown:
#ifdef Q_WS_MAEMO_5