When in non continous mode and scrolling up a page, set the viewport at the bottom of the page (Albert)

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=370246
This commit is contained in:
Albert Astals Cid 2004-12-12 22:57:54 +00:00
parent f7406846d0
commit f46c9176e4
2 changed files with 4 additions and 0 deletions

View file

@ -68,6 +68,7 @@ More items (first items will enter 'In progress list' first):
-> investigate 'Splash' lack of smoothness at low resolutions (see lines in thumbnails)
Done (newest feature comes firts):
-> FIX: When in non continous mode and scrolling up a page, set the viewport at the bottom of the page (Albert)
-> FIX: Dynamic zoom repaints the page while rescaling.
-> ADD: Show the window maximized when the user opens the program for the very first time (Albert)
-> ADD: Use 'Generators' as providers for contents generation.

View file

@ -795,7 +795,10 @@ void PageView::wheelEvent( QWheelEvent *e )
{
// go to prev page
if ( d->vectorIndex > 0 )
{
d->document->setCurrentPage( d->items[ d->vectorIndex - 1 ]->pageNumber() );
verticalScrollBar()->setValue(verticalScrollBar()->maxValue());
}
}
else
QScrollView::wheelEvent( e );