X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=adopterwindow.cpp;h=7ec642dd0cb64887b6dd6199c77a6d7f65c9b521;hb=7c53414daec98fecb63ea234d54c428aefd587ac;hp=daafa295e305fc5367077a530ab2c3063febbff0;hpb=ac72b9ea7af92a9936a8e023a1923cdf94558d54;p=dorian diff --git a/adopterwindow.cpp b/adopterwindow.cpp index daafa29..7ec642d 100644 --- a/adopterwindow.cpp +++ b/adopterwindow.cpp @@ -20,7 +20,7 @@ AdopterWindow::AdopterWindow(QWidget *parent): MainBase(parent), bookView(0), { TRACE; - // Monitor settings + // Monitor settings changes connect(Settings::instance(), SIGNAL(valueChanged(const QString &)), this, SLOT(onSettingsChanged(const QString &))); @@ -146,7 +146,7 @@ void AdopterWindow::resizeEvent(QResizeEvent *event) #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) } @@ -157,6 +157,7 @@ void AdopterWindow::closeEvent(QCloseEvent *event) if (bookView) { bookView->setLastBookmark(); } + hide(); MainBase::closeEvent(event); } @@ -171,7 +172,8 @@ void AdopterWindow::leaveEvent(QEvent *event) void AdopterWindow::keyPressEvent(QKeyEvent *event) { - TRACE; + Trace t("AdopterWindow::keyPressEvent"); + switch (event->key()) { case Qt::Key_PageDown: #ifdef Q_WS_MAEMO_5