diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-04-09 21:59:39 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-04-09 21:59:39 +0200 |
commit | 7f685c3c9bd1f5f99ca2e56876ca02a254e3b85d (patch) | |
tree | 18dcf9484eb3f63d9c75668ac1636e75ca80d9d7 /kpdf/ui | |
parent | 1c13ba28d73f4de69bbcfd8d32fee8ccf72b48ab (diff) | |
download | tdegraphics-7f685c3c9bd1f5f99ca2e56876ca02a254e3b85d.tar.gz tdegraphics-7f685c3c9bd1f5f99ca2e56876ca02a254e3b85d.zip |
kpdf: Enable zoom up to 800%.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kpdf/ui')
-rw-r--r-- | kpdf/ui/pageview.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kpdf/ui/pageview.cpp b/kpdf/ui/pageview.cpp index 58c46101..556512de 100644 --- a/kpdf/ui/pageview.cpp +++ b/kpdf/ui/pageview.cpp @@ -1056,8 +1056,8 @@ void PageView::contentsMouseReleaseEvent( TQMouseEvent * e ) double nX = (double)(selRect.left() + selRect.right()) / (2.0 * (double)contentsWidth()); double nY = (double)(selRect.top() + selRect.bottom()) / (2.0 * (double)contentsHeight()); - // zoom up to 400% - if ( d->zoomFactor <= 4.0 || zoom <= 1.0 ) + // zoom up to 800% + if ( d->zoomFactor <= 8.0 || zoom <= 1.0 ) { d->zoomFactor *= zoom; viewport()->setUpdatesEnabled( false ); @@ -1537,8 +1537,8 @@ void PageView::updateZoom( ZoomMode newZoomMode ) d->zoomFactor = -1; break; } - if ( newFactor > 4.0 ) - newFactor = 4.0; + if ( newFactor > 8.0 ) + newFactor = 8.0; if ( newFactor < 0.1 ) newFactor = 0.1; @@ -1582,13 +1582,13 @@ void PageView::updateZoomText() // add percent items TQString double_oh( "00" ); - const float zoomValue[10] = { 0.125, 0.25, 0.333, 0.5, 0.667, 0.75, 1, 1.25, 1.50, 2 }; + const float zoomValue[11] = { 0.125, 0.25, 0.333, 0.5, 0.667, 0.75, 1, 1.25, 1.50, 2, 4 }; int idx = 0, selIdx = 2; // use 3 if "fit text" present bool inserted = false; //use: "d->zoomMode != ZoomFixed" to hide Fit/* zoom ratio - while ( idx < 10 || !inserted ) + while ( idx < 11 || !inserted ) { - float value = idx < 10 ? zoomValue[ idx ] : newFactor; + float value = idx < 11 ? zoomValue[ idx ] : newFactor; if ( !inserted && newFactor < (value - 0.0001) ) value = newFactor; else |