summaryrefslogtreecommitdiffstats
path: root/ksnapshot
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-09-02 15:53:19 +0900
committerMichele Calgaro <[email protected]>2023-09-04 10:29:39 +0900
commit4396343fcc0f4dfd74042cbee01e311f6601f3ac (patch)
tree09ed426853fb47f0e0c0d24bdf2d27200c447ece /ksnapshot
parent3eed571e596d6f96c676abc5cda6dd2f16756bc2 (diff)
downloadtdegraphics-4396343fcc0f4dfd74042cbee01e311f6601f3ac.tar.gz
tdegraphics-4396343fcc0f4dfd74042cbee01e311f6601f3ac.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 0e051a3c83fc5e121be7a0497c823ed9546157eb)
Diffstat (limited to 'ksnapshot')
-rw-r--r--ksnapshot/ksnapshot.cpp2
-rw-r--r--ksnapshot/ksnapshotwidget.ui.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/ksnapshot/ksnapshot.cpp b/ksnapshot/ksnapshot.cpp
index 8868fbdc..00a1b1ac 100644
--- a/ksnapshot/ksnapshot.cpp
+++ b/ksnapshot/ksnapshot.cpp
@@ -338,7 +338,7 @@ void KSnapshot::slotPrint()
neww = newh/h*w;
}
- img = img.smoothScale( int(neww), int(newh), TQ_ScaleMin );
+ img = img.smoothScale( int(neww), int(newh), TQImage::ScaleMin );
tqApp->processEvents();
int x = (metrics.width()-img.width())/2;
diff --git a/ksnapshot/ksnapshotwidget.ui.h b/ksnapshot/ksnapshotwidget.ui.h
index 55a3c6bb..7fb52539 100644
--- a/ksnapshot/ksnapshotwidget.ui.h
+++ b/ksnapshot/ksnapshotwidget.ui.h
@@ -39,10 +39,10 @@ void KSnapshotWidget::setPreview( const TQPixmap &pm )
if ( r1 * previewWidth() < previewHeight() )
img = img.smoothScale( previewWidth(),
int( previewWidth() * r1 ),
- TQ_ScaleMin );
+ TQImage::ScaleMin );
else
img = img.smoothScale( ( int ) ( ( ( double )previewHeight() ) / r1 ),
- previewHeight(), TQ_ScaleMin );
+ previewHeight(), TQImage::ScaleMin );
TQToolTip::remove( lblImage );
TQToolTip::add( lblImage,