summaryrefslogtreecommitdiffstats
path: root/src/gvcore
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2023-09-02 15:47:47 +0900
committerMichele Calgaro <[email protected]>2023-09-02 15:47:47 +0900
commitad5ba758d539559057f4661087f5c116d85d76ed (patch)
tree6b13e4aa4ae46fa242ff08fa5dac9639a8f6075b /src/gvcore
parent0dfbcfeaabfddcfd01f7611619ddf4968e02b15f (diff)
downloadgwenview-ad5ba758d539559057f4661087f5c116d85d76ed.tar.gz
gwenview-ad5ba758d539559057f4661087f5c116d85d76ed.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/gvcore')
-rw-r--r--src/gvcore/documentjpegloadedimpl.cpp2
-rw-r--r--src/gvcore/filethumbnailview.cpp2
-rw-r--r--src/gvcore/imageview.cpp4
-rw-r--r--src/gvcore/thumbnailloadjob.cpp4
4 files changed, 6 insertions, 6 deletions
diff --git a/src/gvcore/documentjpegloadedimpl.cpp b/src/gvcore/documentjpegloadedimpl.cpp
index 8d10367..66e4f8e 100644
--- a/src/gvcore/documentjpegloadedimpl.cpp
+++ b/src/gvcore/documentjpegloadedimpl.cpp
@@ -94,7 +94,7 @@ TQString DocumentJPEGLoadedImpl::localSave(TQFile* file, const TQCString& format
d->mJPEGContent.resetOrientation();
if (!d->mJPEGContent.thumbnail().isNull()) {
d->mJPEGContent.setThumbnail( ImageUtils::scale(
- mDocument->image(), 128, 128, ImageUtils::SMOOTH_FAST, TQ_ScaleMin));
+ mDocument->image(), 128, 128, ImageUtils::SMOOTH_FAST, TQImage::ScaleMin));
}
LOG("JPEG Lossless save");
diff --git a/src/gvcore/filethumbnailview.cpp b/src/gvcore/filethumbnailview.cpp
index 82249e4..ff528a7 100644
--- a/src/gvcore/filethumbnailview.cpp
+++ b/src/gvcore/filethumbnailview.cpp
@@ -810,7 +810,7 @@ void FileThumbnailView::startDrag() {
}
TQImage img = pix->convertToImage();
- img = img.smoothScale(size, TQ_ScaleMin);
+ img = img.smoothScale(size, TQImage::ScaleMin);
painter->drawImage(left, top, img);
}
diff --git a/src/gvcore/imageview.cpp b/src/gvcore/imageview.cpp
index f5b6977..1604528 100644
--- a/src/gvcore/imageview.cpp
+++ b/src/gvcore/imageview.cpp
@@ -311,7 +311,7 @@ ImageView::ImageView(TQWidget* parent,Document* document, TDEActionCollection* a
d->mContrast = 100;
d->mBCGDialog = 0;
- viewport()->setFocusPolicy(TQ_WheelFocus);
+ viewport()->setFocusPolicy(TQWidget::WheelFocus);
setFrameStyle(NoFrame);
setAcceptDrops( true );
viewport()->setAcceptDrops( true );
@@ -348,7 +348,7 @@ ImageView::ImageView(TQWidget* parent,Document* document, TDEActionCollection* a
d->mZoomCombo=new TQComboBox(true);
// Avoid stealing focus
- d->mZoomCombo->setFocusPolicy(TQ_ClickFocus);
+ d->mZoomCombo->setFocusPolicy(TQWidget::ClickFocus);
connect(d->mZoomCombo, TQT_SIGNAL(activated(int)),
TQT_TQOBJECT(this), TQT_SLOT(slotSelectZoom()) );
diff --git a/src/gvcore/thumbnailloadjob.cpp b/src/gvcore/thumbnailloadjob.cpp
index f10889a..7969855 100644
--- a/src/gvcore/thumbnailloadjob.cpp
+++ b/src/gvcore/thumbnailloadjob.cpp
@@ -169,7 +169,7 @@ void ThumbnailThread::loadThumbnail() {
mImage=originalImage;
needCaching = false;
} else {
- mImage=ImageUtils::scale(originalImage,thumbSize,thumbSize,ImageUtils::SMOOTH_FAST,TQ_ScaleMin);
+ mImage=ImageUtils::scale(originalImage,thumbSize,thumbSize,ImageUtils::SMOOTH_FAST,TQImage::ScaleMin);
}
loaded = true;
}
@@ -741,7 +741,7 @@ void ThumbnailLoadJob::emitThumbnailLoaded(const TQImage& img, TQSize size) {
TQImage thumbImg;
if (biggestDimension>mThumbnailSize) {
// Scale down thumbnail if necessary
- thumbImg=ImageUtils::scale(img,mThumbnailSize, mThumbnailSize, ImageUtils::SMOOTH_FAST,TQ_ScaleMin);
+ thumbImg=ImageUtils::scale(img,mThumbnailSize, mThumbnailSize, ImageUtils::SMOOTH_FAST,TQImage::ScaleMin);
} else {
thumbImg=img;
}