Commit 1807afa6 authored by Albert Astals Cid's avatar Albert Astals Cid

Implement RMB Fit Width "the right way (TM)"

Fixes bug 99238
BUGS: 99238

svn path=/trunk/kdegraphics/kpdf/; revision=389202
parent bea47b52
......@@ -232,21 +232,10 @@ bool PageView::canFitPageWidth()
void PageView::fitPageWidth( int page )
{
// zoom: Fit Width, columns: 1. setActions + relayout + setPage + update
d->zoomMode = ZoomFitWidth;
Settings::setViewColumns( 1 );
d->aZoomFitWidth->setChecked( true );
d->aZoomFitPage->setChecked( false );
d->aZoomFitText->setChecked( false );
d->aViewTwoPages->setChecked( false );
viewport()->setUpdatesEnabled( false );
slotRelayoutPages();
viewport()->setUpdatesEnabled( true );
d->document->setViewportPage( page );
updateZoomText();
d->aZoom->setCurrentItem(0);
slotZoom();
}
//BEGIN DocumentObserver inherited methods
void PageView::notifySetup( const QValueVector< KPDFPage * > & pageSet, bool documentChanged )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment