X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=bookview.cpp;h=d94cb037c6d05fcabb06718125bc9ad12c6a6c49;hb=4f302c4427507fec544f32b9003035e93f32b2e2;hp=3964afa7d647afb7b4a2da0c02f4fc6426edf2f8;hpb=4f46de1a517b4d92eed3debb8f3f7012c51a5653;p=dorian diff --git a/bookview.cpp b/bookview.cpp index 3964afa..d94cb03 100644 --- a/bookview.cpp +++ b/bookview.cpp @@ -516,27 +516,3 @@ void BookView::onMediaKeysPressed(MediaKeysObserver::MediaKeys key) } #endif // Q_OS_SYMBIAN - -#ifdef Q_OS_SYMBIAN - -void BookView::adjustPosition() -{ - TRACE; - - // QWebView widget doesn't maintain reading positon during orientation - // switch. This heuristics tries to work around it. - - const qreal portraitMagic = 1.66; - const qreal landscapeMagic = 0.655; - if (mBook) { - QSize desktop = QApplication::desktop()->size(); - int screenHeight = desktop.height(); - int screenWidth = desktop.width(); - qreal ratio = (screenWidthmainFrame(); - int current = frame->scrollPosition().y(); - frame->scroll(0, (int)(current * ratio) - current); - } -} - -#endif // Q_OS_SYMBIAN