summaryrefslogtreecommitdiffstats
path: root/kopete
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
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')
-rw-r--r--kopete/kopete/chatwindow/chatmessagepart.cpp2
-rw-r--r--kopete/kopete/config/appearance/appearanceconfig.cpp2
-rw-r--r--kopete/kopete/config/identity/kopeteidentityconfig.cpp6
-rw-r--r--kopete/kopete/contactlist/kopetelviprops.cpp2
-rw-r--r--kopete/kopete/contactlist/kopetemetacontactlvi.cpp2
-rw-r--r--kopete/kopete/kopeteeditglobalidentitywidget.cpp10
-rw-r--r--kopete/kopete/kopetewindow.cpp6
-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
-rw-r--r--kopete/plugins/history/historydialog.cpp2
-rw-r--r--kopete/protocols/jabber/jabbercontact.cpp4
-rw-r--r--kopete/protocols/jabber/ui/dlgjabbervcard.cpp4
-rw-r--r--kopete/protocols/msn/msnprotocol.cpp2
-rw-r--r--kopete/protocols/oscar/oscaraccount.cpp2
-rw-r--r--kopete/protocols/yahoo/yahooaccount.cpp2
18 files changed, 29 insertions, 29 deletions
diff --git a/kopete/kopete/chatwindow/chatmessagepart.cpp b/kopete/kopete/chatwindow/chatmessagepart.cpp
index b13500f7..a9bcdcba 100644
--- a/kopete/kopete/chatwindow/chatmessagepart.cpp
+++ b/kopete/kopete/chatwindow/chatmessagepart.cpp
@@ -231,7 +231,7 @@ ChatMessagePart::ChatMessagePart( Kopete::ChatSession *mgr, TQWidget *parent, co
// Write the template to TDEHTMLPart
writeTemplate();
- view()->setFocusPolicy( TQ_NoFocus );
+ view()->setFocusPolicy( TQWidget::NoFocus );
d->tt=new ToolTip( this );
diff --git a/kopete/kopete/config/appearance/appearanceconfig.cpp b/kopete/kopete/config/appearance/appearanceconfig.cpp
index 279fe0c4..555c36a1 100644
--- a/kopete/kopete/config/appearance/appearanceconfig.cpp
+++ b/kopete/kopete/config/appearance/appearanceconfig.cpp
@@ -241,7 +241,7 @@ AppearanceConfig::AppearanceConfig(TQWidget *parent, const char* /*name*/, const
TDEHTMLView *htmlWidget = d->preview->view();
htmlWidget->setMarginWidth(4);
htmlWidget->setMarginHeight(4);
- htmlWidget->setFocusPolicy(TQ_NoFocus);
+ htmlWidget->setFocusPolicy(TQWidget::NoFocus);
htmlWidget->setSizePolicy(
TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
l->addWidget(htmlWidget);
diff --git a/kopete/kopete/config/identity/kopeteidentityconfig.cpp b/kopete/kopete/config/identity/kopeteidentityconfig.cpp
index d3c2b335..f57de188 100644
--- a/kopete/kopete/config/identity/kopeteidentityconfig.cpp
+++ b/kopete/kopete/config/identity/kopeteidentityconfig.cpp
@@ -383,7 +383,7 @@ void KopeteIdentityConfig::slotEnableAndDisableWidgets()
}
if(!photo.isNull())
- d->m_view->labelPhoto->setPixmap(TQPixmap(photo.smoothScale(64, 92, TQ_ScaleMin)));
+ d->m_view->labelPhoto->setPixmap(TQPixmap(photo.smoothScale(64, 92, TQImage::ScaleMin)));
else
d->m_view->labelPhoto->setPixmap(TQPixmap());
@@ -528,7 +528,7 @@ void KopeteIdentityConfig::slotChangePhoto(const TQString &photoUrl)
if(photo.width() > 96 || photo.height() > 96)
{
// Scale and crop the picture.
- photo = photo.smoothScale( 96, 96, TQ_ScaleMin );
+ photo = photo.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 96, 96);
@@ -539,7 +539,7 @@ void KopeteIdentityConfig::slotChangePhoto(const TQString &photoUrl)
else if (photo.width() < 32 || photo.height() < 32)
{
// Scale and crop the picture.
- photo = photo.smoothScale( 32, 32, TQ_ScaleMin );
+ photo = photo.smoothScale( 32, 32, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 32, 32);
diff --git a/kopete/kopete/contactlist/kopetelviprops.cpp b/kopete/kopete/contactlist/kopetelviprops.cpp
index a6cec329..64fb1233 100644
--- a/kopete/kopete/contactlist/kopetelviprops.cpp
+++ b/kopete/kopete/contactlist/kopetelviprops.cpp
@@ -372,7 +372,7 @@ void KopeteMetaLVIProps::slotEnableAndDisableWidgets()
break;
}
if( !photo.isNull() )
- mainWidget->photoLabel->setPixmap(TQPixmap(photo.smoothScale( 64, 92, TQ_ScaleMin )));
+ mainWidget->photoLabel->setPixmap(TQPixmap(photo.smoothScale( 64, 92, TQImage::ScaleMin )));
else
mainWidget->photoLabel->setPixmap( TQPixmap() );
}
diff --git a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
index 66190c36..21cad8d2 100644
--- a/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
+++ b/kopete/kopete/contactlist/kopetemetacontactlvi.cpp
@@ -521,7 +521,7 @@ void KopeteMetaContactLVI::slotPhotoChanged()
{
int photoSize = d->iconSize;
- photoImg = photoImg.smoothScale( photoSize, photoSize, TQ_ScaleMin );
+ photoImg = photoImg.smoothScale( photoSize, photoSize, TQImage::ScaleMin );
KImageEffect *effect = 0L;
switch ( m_metaContact->status() )
diff --git a/kopete/kopete/kopeteeditglobalidentitywidget.cpp b/kopete/kopete/kopeteeditglobalidentitywidget.cpp
index 869f8e62..92c88f2e 100644
--- a/kopete/kopete/kopeteeditglobalidentitywidget.cpp
+++ b/kopete/kopete/kopeteeditglobalidentitywidget.cpp
@@ -100,7 +100,7 @@ void KopeteEditGlobalIdentityWidget::setIconSize(int size)
d->labelPicture->setMinimumSize(TQSize(d->iconSize, d->iconSize));
d->labelPicture->setMaximumSize(TQSize(d->iconSize, d->iconSize));
if( !d->myself->photo().isNull() )
- d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQ_ScaleMin)));
+ d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQImage::ScaleMin)));
}
void KopeteEditGlobalIdentityWidget::iconSizeChanged()
@@ -115,7 +115,7 @@ void KopeteEditGlobalIdentityWidget::iconSizeChanged()
d->labelPicture->setMinimumSize(TQSize(d->iconSize, d->iconSize));
d->labelPicture->setMaximumSize(TQSize(d->iconSize, d->iconSize));
if( !d->myself->photo().isNull() )
- d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQ_ScaleMin)));
+ d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQImage::ScaleMin)));
}
}
@@ -149,7 +149,7 @@ void KopeteEditGlobalIdentityWidget::updateGUI(const TQString &key, const TQVari
// Update the picture and the tooltip
if( !d->myself->photo().isNull() )
{
- d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQ_ScaleMin)));
+ d->labelPicture->setPixmap(TQPixmap(d->myself->photo().smoothScale(d->iconSize, d->iconSize, TQImage::ScaleMin)));
TQToolTip::add(d->labelPicture, "<qt><img src=\""+ value.toString() +"\"></qt>");
}
}
@@ -183,7 +183,7 @@ void KopeteEditGlobalIdentityWidget::photoClicked()
if(photo.width() > 96 || photo.height() > 96)
{
// Scale and crop the picture.
- photo = photo.smoothScale( 96, 96, TQ_ScaleMin );
+ photo = photo.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 96, 96);
@@ -194,7 +194,7 @@ void KopeteEditGlobalIdentityWidget::photoClicked()
else if (photo.width() < 32 || photo.height() < 32)
{
// Scale and crop the picture.
- photo = photo.smoothScale( 32, 32, TQ_ScaleMin );
+ photo = photo.smoothScale( 32, 32, TQImage::ScaleMin );
// crop image if not square
if(photo.width() < photo.height())
photo = photo.copy((photo.width()-photo.height())/2, 0, 32, 32);
diff --git a/kopete/kopete/kopetewindow.cpp b/kopete/kopete/kopetewindow.cpp
index f1e0e1fd..ef8cec71 100644
--- a/kopete/kopete/kopetewindow.cpp
+++ b/kopete/kopete/kopetewindow.cpp
@@ -984,12 +984,12 @@ void KopeteWindow::slotBuildStatusMessageMenu()
m_newMessageEdit->setText(Kopete::Away::message());
newMessageBox->setFocusProxy( m_newMessageEdit );
- newMessageBox->setFocusPolicy( TQ_ClickFocus );
+ newMessageBox->setFocusPolicy( TQWidget::ClickFocus );
/* newMessageLabel->setFocusProxy( newMessageEdit );
newMessageLabel->setBuddy( newMessageEdit );
- newMessageLabel->setFocusPolicy( TQ_ClickFocus );*/
+ newMessageLabel->setFocusPolicy( TQWidget::ClickFocus );*/
newMessagePix->setFocusProxy( m_newMessageEdit );
- newMessagePix->setFocusPolicy( TQ_ClickFocus );
+ newMessagePix->setFocusPolicy( TQWidget::ClickFocus );
connect( m_newMessageEdit, TQT_SIGNAL( returnPressed() ), TQT_SLOT( slotNewStatusMessageEntered() ) );
m_globalStatusMessageMenu->insertItem( newMessageBox );
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;
diff --git a/kopete/plugins/history/historydialog.cpp b/kopete/plugins/history/historydialog.cpp
index e89ec981..0ce07aad 100644
--- a/kopete/plugins/history/historydialog.cpp
+++ b/kopete/plugins/history/historydialog.cpp
@@ -147,7 +147,7 @@ HistoryDialog::HistoryDialog(Kopete::MetaContact *mc, TQWidget* parent,
mHtmlView = mHtmlPart->view();
mHtmlView->setMarginWidth(4);
mHtmlView->setMarginHeight(4);
- mHtmlView->setFocusPolicy(TQ_NoFocus);
+ mHtmlView->setFocusPolicy(TQWidget::NoFocus);
mHtmlView->setSizePolicy(
TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Expanding));
l->addWidget(mHtmlView);
diff --git a/kopete/protocols/jabber/jabbercontact.cpp b/kopete/protocols/jabber/jabbercontact.cpp
index d5aadadb..54bc7f7e 100644
--- a/kopete/protocols/jabber/jabbercontact.cpp
+++ b/kopete/protocols/jabber/jabbercontact.cpp
@@ -732,7 +732,7 @@ void JabberContact::setPhoto( const TQString &photoPath )
TQString newLocation( locateLocal( "appdata", "jabberphotos/"+ KURL(photoPath).fileName().lower() ) );
// Scale and crop the picture.
- contactPhoto = contactPhoto.smoothScale( 96, 96, TQ_ScaleMin );
+ contactPhoto = contactPhoto.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(contactPhoto.width() < contactPhoto.height())
contactPhoto = contactPhoto.copy((contactPhoto.width()-contactPhoto.height())/2, 0, 96, 96);
@@ -751,7 +751,7 @@ void JabberContact::setPhoto( const TQString &photoPath )
TQString newLocation( locateLocal( "appdata", "jabberphotos/"+ KURL(photoPath).fileName().lower() ) );
// Scale and crop the picture.
- contactPhoto = contactPhoto.smoothScale( 32, 32, TQ_ScaleMin );
+ contactPhoto = contactPhoto.smoothScale( 32, 32, TQImage::ScaleMin );
// crop image if not square
if(contactPhoto.width() < contactPhoto.height())
contactPhoto = contactPhoto.copy((contactPhoto.width()-contactPhoto.height())/2, 0, 32, 32);
diff --git a/kopete/protocols/jabber/ui/dlgjabbervcard.cpp b/kopete/protocols/jabber/ui/dlgjabbervcard.cpp
index 58e92af7..3f12b2f5 100644
--- a/kopete/protocols/jabber/ui/dlgjabbervcard.cpp
+++ b/kopete/protocols/jabber/ui/dlgjabbervcard.cpp
@@ -493,7 +493,7 @@ void dlgJabberVCard::slotSelectPhoto()
if(img.width() > 96 || img.height() > 96)
{
// Scale and crop the picture.
- img = img.smoothScale( 96, 96, TQ_ScaleMin );
+ img = img.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(img.width() < img.height())
img = img.copy((img.width()-img.height())/2, 0, 96, 96);
@@ -504,7 +504,7 @@ void dlgJabberVCard::slotSelectPhoto()
else if (img.width() < 32 || img.height() < 32)
{
// Scale and crop the picture.
- img = img.smoothScale( 32, 32, TQ_ScaleMin );
+ img = img.smoothScale( 32, 32, TQImage::ScaleMin );
// crop image if not square
if(img.width() < img.height())
img = img.copy((img.width()-img.height())/2, 0, 32, 32);
diff --git a/kopete/protocols/msn/msnprotocol.cpp b/kopete/protocols/msn/msnprotocol.cpp
index d2570586..2b7e8ab6 100644
--- a/kopete/protocols/msn/msnprotocol.cpp
+++ b/kopete/protocols/msn/msnprotocol.cpp
@@ -160,7 +160,7 @@ bool MSNProtocol::validContactId(const TQString& userid)
TQImage MSNProtocol::scalePicture(const TQImage &picture)
{
TQImage img(picture);
- img = img.smoothScale( 96, 96, TQ_ScaleMin );
+ img = img.smoothScale( 96, 96, TQImage::ScaleMin );
// crop image if not square
if(img.width() < img.height())
{
diff --git a/kopete/protocols/oscar/oscaraccount.cpp b/kopete/protocols/oscar/oscaraccount.cpp
index c540f13e..6bb0edb9 100644
--- a/kopete/protocols/oscar/oscaraccount.cpp
+++ b/kopete/protocols/oscar/oscaraccount.cpp
@@ -475,7 +475,7 @@ void OscarAccount::setBuddyIcon( KURL url )
const TQSize size = ( d->engine->isIcq() ) ? TQSize( 52, 64 ) : TQSize( 48, 48 );
- image = image.smoothScale( size, TQ_ScaleMax );
+ image = image.smoothScale( size, TQImage::ScaleMax );
if( image.width() > size.width())
image = image.copy( ( image.width() - size.width() ) / 2, 0, size.width(), image.height() );
diff --git a/kopete/protocols/yahoo/yahooaccount.cpp b/kopete/protocols/yahoo/yahooaccount.cpp
index 9e2925cf..91d845df 100644
--- a/kopete/protocols/yahoo/yahooaccount.cpp
+++ b/kopete/protocols/yahoo/yahooaccount.cpp
@@ -1791,7 +1791,7 @@ void YahooAccount::setBuddyIcon( const KURL &url )
KMessageBox::queuedMessageBox( Kopete::UI::Global::mainWidget(), KMessageBox::Sorry, i18n( "<qt>The selected buddy icon could not be opened. <br />Please set a new buddy icon.</qt>" ), i18n( "Yahoo Plugin" ) );
return;
}
- image = image.smoothScale( 96, 96, TQ_ScaleMin );
+ image = image.smoothScale( 96, 96, TQImage::ScaleMin );
if(image.width() < image.height())
{
image = image.copy((image.width()-image.height())/2, 0, 96, 96);