#if defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
// Restore previous reading position
if (bookView) {
- QTimer::singleShot(110, bookView, SLOT(restoreLastBookmark()));
+ QTimer::singleShot(230, bookView, SLOT(restoreLastBookmark()));
}
#endif // defined(Q_WS_MAEMO_5) || defined(Q_OS_SYMBIAN)
}
fullScreenWindow->hide();
show();
+ view->restoreLastBookmark();
}
void MainWindow::showBig()
hide();
#endif
fullScreenWindow->showFullScreen();
+ view->restoreLastBookmark();
}
void MainWindow::setCurrentBook(const QModelIndex ¤t)
QString current = Settings::instance()->value("orientation",
Platform::instance()->defaultOrientation()).toString();
QString target = (current == "landscape")? "portrait": "landscape";
+ view->setLastBookmark();
Settings::instance()->setValue("orientation", target);
}
qDebug() << "Key" << key;
if (key == "orientation") {
- view->setLastBookmark();
QString value = Settings::instance()->value(key,
Platform::instance()->defaultOrientation()).toString();
qDebug() << "Value: orientation" << value;
void Book::setLastBookmark(int part, qreal position, bool fast)
{
TRACE;
+ qDebug() << "Part" << part << "position" << position << "fast?" << fast;
if (!fast) {
load();
}