summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-09-02 15:53:50 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-09-02 15:53:50 +0900
commitd37705184967f236c728938b2824abbed628ce26 (patch)
tree891cb2133b5edea3d2c78fc5ee31ba1b0e3d49ee /kopete/libkopete
parent42857567f953e2f9bdda1ac81ee6c3557dee5a29 (diff)
downloadtdenetwork-d37705184967f236c728938b2824abbed628ce26.tar.gz
tdenetwork-d37705184967f236c728938b2824abbed628ce26.zip
Replace TQ_*Focus* and TQ_Scale* defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kopete/libkopete')
-rw-r--r--kopete/libkopete/compat/kpixmapregionselectorwidget.cpp2
-rw-r--r--kopete/libkopete/kopetemetacontact.cpp2
-rw-r--r--kopete/libkopete/ui/kopetelistviewitem.cpp4
-rw-r--r--kopete/libkopete/ui/kopetelistviewitem.h2
-rw-r--r--kopete/libkopete/ui/metacontactselectorwidget.cpp2
5 files changed, 6 insertions, 6 deletions
diff --git a/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp b/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
index 69d33bd6..4c8cd6fd 100644
--- a/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
+++ b/kopete/libkopete/compat/kpixmapregionselectorwidget.cpp
@@ -426,7 +426,7 @@ void KPixmapRegionSelectorWidget::setMaximumWidgetSize(int width, int height)
{
/* We have to resize the pixmap to get it complete on the screen */
TQImage image=m_originalPixmap.convertToImage();
- m_originalPixmap.convertFromImage( image.smoothScale( width, height, TQ_ScaleMin ) );
+ m_originalPixmap.convertFromImage( image.smoothScale( width, height, TQImage::ScaleMin ) );
double oldZoomFactor = m_zoomFactor;
m_zoomFactor=m_originalPixmap.width()/(double)m_unzoomedPixmap.width();
diff --git a/kopete/libkopete/kopetemetacontact.cpp b/kopete/libkopete/kopetemetacontact.cpp
index 5fadf390..18794350 100644
--- a/kopete/libkopete/kopetemetacontact.cpp
+++ b/kopete/libkopete/kopetemetacontact.cpp
@@ -690,7 +690,7 @@ TQImage MetaContact::photo() const
if( picture().image().width() > 96 && picture().image().height() > 96 )
{
kdDebug( 14010 ) << k_funcinfo << "Resizing image from " << picture().image().width() << " x " << picture().image().height() << endl;
- return picture().image().smoothScale(96,96,TQ_ScaleMin);
+ return picture().image().smoothScale(96,96,TQImage::ScaleMin);
}
else
return picture().image();
diff --git a/kopete/libkopete/ui/kopetelistviewitem.cpp b/kopete/libkopete/ui/kopetelistviewitem.cpp
index 94fbff0f..a71b19f5 100644
--- a/kopete/libkopete/ui/kopetelistviewitem.cpp
+++ b/kopete/libkopete/ui/kopetelistviewitem.cpp
@@ -790,7 +790,7 @@ void ImageComponent::paint( TQPainter *painter, const TQColorGroup & )
painter->drawPixmap( rc & ourRc, d->image );
}
-void ImageComponent::scale( int w, int h, TQ_ScaleMode mode )
+void ImageComponent::scale( int w, int h, TQImage::ScaleMode mode )
{
TQImage im = d->image.convertToImage();
setPixmap( TQPixmap( im.smoothScale( w, h, mode ) ) );
@@ -1052,7 +1052,7 @@ void DisplayNameComponent::redraw()
case Kopete::Emoticons::Image:
ic = new ImageComponent( this );
ic->setPixmap( TQPixmap( (*token).picPath ) );
- ic->scale( INT_MAX, fontHeight, TQ_ScaleMin );
+ ic->scale( INT_MAX, fontHeight, TQImage::ScaleMin );
break;
default:
kdDebug( 14010 ) << k_funcinfo << "This should have not happened!" << endl;
diff --git a/kopete/libkopete/ui/kopetelistviewitem.h b/kopete/libkopete/ui/kopetelistviewitem.h
index e4f254ce..d87a63a7 100644
--- a/kopete/libkopete/ui/kopetelistviewitem.h
+++ b/kopete/libkopete/ui/kopetelistviewitem.h
@@ -344,7 +344,7 @@ public:
virtual void paint( TQPainter *painter, const TQColorGroup &cg );
- virtual void scale( int w, int h, TQ_ScaleMode );
+ virtual void scale( int w, int h, TQImage::ScaleMode );
static int RTTI;
virtual int rtti() const { return RTTI; }
protected:
diff --git a/kopete/libkopete/ui/metacontactselectorwidget.cpp b/kopete/libkopete/ui/metacontactselectorwidget.cpp
index 7497e046..8d049a5d 100644
--- a/kopete/libkopete/ui/metacontactselectorwidget.cpp
+++ b/kopete/libkopete/ui/metacontactselectorwidget.cpp
@@ -112,7 +112,7 @@ void MetaContactSelectorWidgetLVI::slotPhotoChanged()
{
int photoSize = d->photoSize;
- photoImg = photoImg.smoothScale( photoSize, photoSize, TQ_ScaleMin ) ;
+ photoImg = photoImg.smoothScale( photoSize, photoSize, TQImage::ScaleMin ) ;
// draw a 1 pixel black border
photoPixmap = photoImg;