diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-02 15:51:51 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-09-02 15:51:51 +0900 |
commit | 76898d15ff25a65f81962cbb5f4c04a3338a0a06 (patch) | |
tree | d2da3d44f09c3f397f5eb2228f2bb3ce436fc8d7 /kipi-plugins/printwizard | |
parent | 1ffbcfbf6b38abf287771a775ef9854d5ab1d73d (diff) | |
download | kipi-plugins-76898d15ff25a65f81962cbb5f4c04a3338a0a06.tar.gz kipi-plugins-76898d15ff25a65f81962cbb5f4c04a3338a0a06.zip |
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kipi-plugins/printwizard')
-rw-r--r-- | kipi-plugins/printwizard/cropframe.cpp | 2 | ||||
-rw-r--r-- | kipi-plugins/printwizard/frmprintwizard.cpp | 2 | ||||
-rw-r--r-- | kipi-plugins/printwizard/tphoto.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/kipi-plugins/printwizard/cropframe.cpp b/kipi-plugins/printwizard/cropframe.cpp index 13cb3c8..5608f81 100644 --- a/kipi-plugins/printwizard/cropframe.cpp +++ b/kipi-plugins/printwizard/cropframe.cpp @@ -78,7 +78,7 @@ void CropFrame::init(TPhoto *photo, int width, int height, bool autoRotate, bool matrix.rotate(m_photo->rotation); scaledImg = scaledImg.xForm(matrix); - scaledImg = scaledImg.smoothScale(this->width(), this->height(), TQ_ScaleMin); + scaledImg = scaledImg.smoothScale(this->width(), this->height(), TQImage::ScaleMin); m_pixmap = new TQPixmap(); m_pixmap->convertFromImage(scaledImg); diff --git a/kipi-plugins/printwizard/frmprintwizard.cpp b/kipi-plugins/printwizard/frmprintwizard.cpp index 59772f4..0d79956 100644 --- a/kipi-plugins/printwizard/frmprintwizard.cpp +++ b/kipi-plugins/printwizard/frmprintwizard.cpp @@ -827,7 +827,7 @@ bool FrmPrintWizard::paintOnePage(TQImage &p, TQPtrList<TPhoto> photos, TQPtrLis int h = NINT((double)layout->height() * yRatio); // We can use scaleFree because the crop frame should have the proper dimensions. - img = img.smoothScale(w, h, TQ_ScaleFree); + img = img.smoothScale(w, h, TQImage::ScaleFree); // don't have drawimage, so we copy the pixels over manually for(int srcY = 0; srcY < img.height(); srcY++) for(int srcX = 0; srcX < img.width(); srcX++) diff --git a/kipi-plugins/printwizard/tphoto.cpp b/kipi-plugins/printwizard/tphoto.cpp index 451e124..73cf26f 100644 --- a/kipi-plugins/printwizard/tphoto.cpp +++ b/kipi-plugins/printwizard/tphoto.cpp @@ -87,7 +87,7 @@ void TPhoto::loadCache() TQImage photo = loadPhoto(); - m_thumbnail = new TQPixmap(TQImage( photo.scale(m_thumbnailSize, m_thumbnailSize, TQ_ScaleMin) )); + m_thumbnail = new TQPixmap(TQImage( photo.scale(m_thumbnailSize, m_thumbnailSize, TQImage::ScaleMin) )); if (m_size) delete m_size; |