{
TRACE;
- // Monitor settings
+ // Monitor settings changes
connect(Settings::instance(), SIGNAL(valueChanged(const QString &)),
this, SLOT(onSettingsChanged(const QString &)));
#if defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
// Restore previous reading position
if (bookView) {
- QTimer::singleShot(230, 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
qDebug() << "Has the book view";
int extraHeight = 0;
+#if defined(Q_WS_X11) && !defined(Q_WS_MAEMO_5)
+ extraHeight += toolBarHeight();
+#endif
+
QRect geo = bookView->geometry();
qDebug() << "bookView:" << geo;
previousButton->setGeometry(geo.x(),
geo.y() + geo.height() - TranslucentButton::pixels + extraHeight,
TranslucentButton::pixels, TranslucentButton::pixels);
- nextButton->setGeometry(geo.x() + geo.width() - TranslucentButton::pixels,
- geo.y(), TranslucentButton::pixels, TranslucentButton::pixels);
+ nextButton->setGeometry(
+ geo.x() + geo.width() - TranslucentButton::pixels,
+ geo.y() + extraHeight, TranslucentButton::pixels,
+ TranslucentButton::pixels);
progress->flash();
previousButton->flash();
nextButton->flash();