summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/translator/translatorguiclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/plugins/translator/translatorguiclient.cpp')
-rw-r--r--kopete/plugins/translator/translatorguiclient.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kopete/plugins/translator/translatorguiclient.cpp b/kopete/plugins/translator/translatorguiclient.cpp
index ae175f41..6af66f37 100644
--- a/kopete/plugins/translator/translatorguiclient.cpp
+++ b/kopete/plugins/translator/translatorguiclient.cpp
@@ -17,7 +17,7 @@
*************************************************************************
*/
-#include <qvariant.h>
+#include <tqvariant.h>
#include <kdebug.h>
#include <kaction.h>
@@ -34,14 +34,14 @@
#include "translatorlanguages.h"
TranslatorGUIClient::TranslatorGUIClient( Kopete::ChatSession *parent, const char *name )
-: QObject( parent, name ), KXMLGUIClient( parent )
+: TQObject( parent, name ), KXMLGUIClient( parent )
{
setInstance( TranslatorPlugin::plugin()->instance() );
- connect( TranslatorPlugin::plugin(), SIGNAL( destroyed( QObject * ) ), this, SLOT( deleteLater() ) );
+ connect( TranslatorPlugin::plugin(), TQT_SIGNAL( destroyed( TQObject * ) ), this, TQT_SLOT( deleteLater() ) );
m_manager = parent;
- new KAction( i18n( "Translate" ), "locale", CTRL + Key_T, this, SLOT( slotTranslateChat() ), actionCollection(), "translateCurrentMessage" );
+ new KAction( i18n( "Translate" ), "locale", CTRL + Key_T, this, TQT_SLOT( slotTranslateChat() ), actionCollection(), "translateCurrentMessage" );
setXMLFile( "translatorchatui.rc" );
}
@@ -56,14 +56,14 @@ void TranslatorGUIClient::slotTranslateChat()
return;
Kopete::Message msg = m_manager->view()->currentMessage();
- QString body = msg.plainBody();
+ TQString body = msg.plainBody();
if ( body.isEmpty() )
return;
- QString src_lang = TranslatorPlugin::plugin()->m_myLang;
- QString dst_lang;
+ TQString src_lang = TranslatorPlugin::plugin()->m_myLang;
+ TQString dst_lang;
- QPtrList<Kopete::Contact> list = m_manager->members();
+ TQPtrList<Kopete::Contact> list = m_manager->members();
Kopete::MetaContact *to = list.first()->metaContact();
dst_lang = to->pluginData( TranslatorPlugin::plugin(), "languageKey" );
if ( dst_lang.isEmpty() || dst_lang == "null" )
@@ -73,12 +73,12 @@ void TranslatorGUIClient::slotTranslateChat()
}
// We search for src_dst
- TranslatorPlugin::plugin()->translateMessage( body, src_lang, dst_lang, this, SLOT( messageTranslated( const QVariant & ) ) );
+ TranslatorPlugin::plugin()->translateMessage( body, src_lang, dst_lang, this, TQT_SLOT( messageTranslated( const TQVariant & ) ) );
}
-void TranslatorGUIClient::messageTranslated( const QVariant &result )
+void TranslatorGUIClient::messageTranslated( const TQVariant &result )
{
- QString translated = result.toString();
+ TQString translated = result.toString();
if ( translated.isEmpty() )
{
kdDebug( 14308 ) << k_funcinfo << "Empty string returned" << endl;