summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/translator/translatorplugin.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-13 17:34:53 +0900
committerMichele Calgaro <[email protected]>2024-01-18 09:59:16 +0900
commit40393e30bb743346b6b40bf130da35419c12ebdc (patch)
tree9330d82486c7b3125b8275914565b324f9af523e /kopete/plugins/translator/translatorplugin.cpp
parent05594058244ba6a1866d5758ae412fb5afd6d727 (diff)
downloadtdenetwork-40393e30bb743346b6b40bf130da35419c12ebdc.tar.gz
tdenetwork-40393e30bb743346b6b40bf130da35419c12ebdc.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit 1329ec6abbcb7b79cd960e0ca138f16598d5f11f)
Diffstat (limited to 'kopete/plugins/translator/translatorplugin.cpp')
-rw-r--r--kopete/plugins/translator/translatorplugin.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kopete/plugins/translator/translatorplugin.cpp b/kopete/plugins/translator/translatorplugin.cpp
index d87830fe..dc94304d 100644
--- a/kopete/plugins/translator/translatorplugin.cpp
+++ b/kopete/plugins/translator/translatorplugin.cpp
@@ -64,12 +64,12 @@ TranslatorPlugin::TranslatorPlugin( TQObject *parent, const char *name, const TQ
m_languages = new TranslatorLanguages;
- connect( Kopete::ChatSessionManager::self(), TQT_SIGNAL( aboutToDisplay( Kopete::Message & ) ),
- this, TQT_SLOT( slotIncomingMessage( Kopete::Message & ) ) );
- connect( Kopete::ChatSessionManager::self(), TQT_SIGNAL( aboutToSend( Kopete::Message & ) ),
- this, TQT_SLOT( slotOutgoingMessage( Kopete::Message & ) ) );
- connect( Kopete::ChatSessionManager::self(), TQT_SIGNAL( chatSessionCreated( Kopete::ChatSession * ) ),
- this, TQT_SLOT( slotNewKMM( Kopete::ChatSession * ) ) );
+ connect( Kopete::ChatSessionManager::self(), TQ_SIGNAL( aboutToDisplay( Kopete::Message & ) ),
+ this, TQ_SLOT( slotIncomingMessage( Kopete::Message & ) ) );
+ connect( Kopete::ChatSessionManager::self(), TQ_SIGNAL( aboutToSend( Kopete::Message & ) ),
+ this, TQ_SLOT( slotOutgoingMessage( Kopete::Message & ) ) );
+ connect( Kopete::ChatSessionManager::self(), TQ_SIGNAL( chatSessionCreated( Kopete::ChatSession * ) ),
+ this, TQ_SLOT( slotNewKMM( Kopete::ChatSession * ) ) );
TQStringList keys;
TQMap<TQString, TQString> m = m_languages->languagesMap();
@@ -78,8 +78,8 @@ TranslatorPlugin::TranslatorPlugin( TQObject *parent, const char *name, const TQ
m_actionLanguage = new TDESelectAction( i18n( "Set &Language" ), "locale", 0, actionCollection(), "contactLanguage" );
m_actionLanguage->setItems( keys );
- connect( m_actionLanguage, TQT_SIGNAL( activated() ), this, TQT_SLOT(slotSetLanguage() ) );
- connect( Kopete::ContactList::self(), TQT_SIGNAL( metaContactSelected( bool ) ), this, TQT_SLOT( slotSelectionChanged( bool ) ) );
+ connect( m_actionLanguage, TQ_SIGNAL( activated() ), this, TQ_SLOT(slotSetLanguage() ) );
+ connect( Kopete::ContactList::self(), TQ_SIGNAL( metaContactSelected( bool ) ), this, TQ_SLOT( slotSelectionChanged( bool ) ) );
setXMLFile( "translatorui.rc" );
@@ -89,7 +89,7 @@ TranslatorPlugin::TranslatorPlugin( TQObject *parent, const char *name, const TQ
slotNewKMM( *it );
loadSettings();
- connect( this, TQT_SIGNAL( settingsChanged() ), this, TQT_SLOT( loadSettings() ) );
+ connect( this, TQ_SIGNAL( settingsChanged() ), this, TQ_SLOT( loadSettings() ) );
}
TranslatorPlugin::~TranslatorPlugin()
@@ -275,8 +275,8 @@ TQString TranslatorPlugin::googleTranslateMessage( const TQString &msg, const TQ
//job->addMetaData( "content-type", "application/x-www-form-urlencoded" );
//job->addMetaData( "referrer", "http://www.google.com" );
- TQObject::connect( job, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, TQT_SLOT( slotDataReceived( TDEIO::Job *, const TQByteArray & ) ) );
- TQObject::connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotJobDone( TDEIO::Job * ) ) );
+ TQObject::connect( job, TQ_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, TQ_SLOT( slotDataReceived( TDEIO::Job *, const TQByteArray & ) ) );
+ TQObject::connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( slotJobDone( TDEIO::Job * ) ) );
// TDEIO is async and we use a sync API, so use the processEvents hack to work around that
// FIXME: We need to make the libkopete API async to get rid of this processEvents.
@@ -311,8 +311,8 @@ TQString TranslatorPlugin::babelTranslateMessage( const TQString &msg, const TQS
TDEIO::TransferJob *job = TDEIO::get( geturl, false, true );
- TQObject::connect( job, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, TQT_SLOT( slotDataReceived( TDEIO::Job *, const TQByteArray & ) ) );
- TQObject::connect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotJobDone( TDEIO::Job * ) ) );
+ TQObject::connect( job, TQ_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, TQ_SLOT( slotDataReceived( TDEIO::Job *, const TQByteArray & ) ) );
+ TQObject::connect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( slotJobDone( TDEIO::Job * ) ) );
// TDEIO is async and we use a sync API, so use the processEvents hack to work around that
// FIXME: We need to make the libkopete API async to get rid of this processEvents.
@@ -389,8 +389,8 @@ void TranslatorPlugin::slotDataReceived ( TDEIO::Job *job, const TQByteArray &da
void TranslatorPlugin::slotJobDone ( TDEIO::Job *job )
{
m_completed[ job ] = true;
- TQObject::disconnect( job, TQT_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, TQT_SLOT( slotDataReceived( TDEIO::Job *, const TQByteArray & ) ) );
- TQObject::disconnect( job, TQT_SIGNAL( result( TDEIO::Job * ) ), this, TQT_SLOT( slotJobDone( TDEIO::Job * ) ) );
+ TQObject::disconnect( job, TQ_SIGNAL( data( TDEIO::Job *, const TQByteArray & ) ), this, TQ_SLOT( slotDataReceived( TDEIO::Job *, const TQByteArray & ) ) );
+ TQObject::disconnect( job, TQ_SIGNAL( result( TDEIO::Job * ) ), this, TQ_SLOT( slotJobDone( TDEIO::Job * ) ) );
}
void TranslatorPlugin::slotSetLanguage()