summaryrefslogtreecommitdiffstats
path: root/src/gvcore/imageview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:08:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-18 18:08:43 -0600
commitd0bdd0d7a768f9935b521f3bd12a4cd72739b96f (patch)
treefa2f2df5113b9dd1e7e821c80084af9da0175187 /src/gvcore/imageview.cpp
parent676f6ed378c861a872de8cfce3dd5efe1780f769 (diff)
downloadgwenview-d0bdd0d7a768f9935b521f3bd12a4cd72739b96f.tar.gz
gwenview-d0bdd0d7a768f9935b521f3bd12a4cd72739b96f.zip
Rename old tq methods that no longer need a unique name
Diffstat (limited to 'src/gvcore/imageview.cpp')
-rw-r--r--src/gvcore/imageview.cpp10
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);