[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/work/akonadi-ports/kdepim/messageviewer
From: Torgny Nyblom <kde () nyblom ! org>
Date: 2009-12-31 19:42:35
Message-ID: 1262288555.745087.18709.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1068303 by tnyblom:
Port++
M +3 -6 viewer_p.cpp
--- branches/work/akonadi-ports/kdepim/messageviewer/viewer_p.cpp #1068302:1068303
@@ -2931,12 +2931,9 @@
void ViewerPrivate::saveRelativePosition()
{
- kWarning() << "WEBKIT: Disabled code in " << Q_FUNC_INFO;
-#if 0
- const QScrollArea *scrollview = mViewer->view();
- mSavedRelativePosition = static_cast<float>( scrollview->widget()->pos().y() ) /
- scrollview->widget()->size().height();
-#endif
+ int pos = mViewer->page()->mainFrame()->scrollBarValue( Qt::Vertical );
+ int height = mViewer->page()->viewportSize().height();
+ mSavedRelativePosition = static_cast<float>( pos / height );
}
//TODO(Andras) inline them
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic