diff options
Diffstat (limited to 'src/gvcore/imageview.cpp')
-rw-r--r-- | src/gvcore/imageview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gvcore/imageview.cpp b/src/gvcore/imageview.cpp index a6c5b9f..f9da66f 100644 --- a/src/gvcore/imageview.cpp +++ b/src/gvcore/imageview.cpp @@ -1350,7 +1350,7 @@ double ImageView::computeZoomToWidth() const { if (d->mDocument->isNull()) { return 1.0; } - int sw = verticalScrollBar()->tqsizeHint().width(); // tqgeometry is not valid before first show() + int sw = verticalScrollBar()->sizeHint().width(); // tqgeometry is not valid before first show() int w = width(); int dw = d->mDocument->width(); switch( vScrollBarMode()) { @@ -1370,7 +1370,7 @@ double ImageView::computeZoomToHeight() const { if (d->mDocument->isNull()) { return 1.0; } - int sh = horizontalScrollBar()->tqsizeHint().height(); + int sh = horizontalScrollBar()->sizeHint().height(); int h = height(); int dh = d->mDocument->height(); switch( vScrollBarMode()) { @@ -1425,11 +1425,11 @@ void ImageView::updateImageOffset() { int zpixHeight=int(d->mDocument->height() * d->mZoom); if (zpixWidth>viewWidth && hScrollBarMode()!=AlwaysOff) { - // use tqsizeHint() - tqgeometry is not valid before first show() - viewHeight-=horizontalScrollBar()->tqsizeHint().height(); + // use sizeHint() - tqgeometry is not valid before first show() + viewHeight-=horizontalScrollBar()->sizeHint().height(); } if (zpixHeight>viewHeight && vScrollBarMode()!=AlwaysOff) { - viewWidth-=verticalScrollBar()->tqsizeHint().width(); + viewWidth-=verticalScrollBar()->sizeHint().width(); } d->mXOffset=TQMAX(0,(viewWidth-zpixWidth)/2); |