summaryrefslogtreecommitdiffstats
path: root/kopete/libkopete/private/kopetecommand.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/libkopete/private/kopetecommand.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/libkopete/private/kopetecommand.cpp')
-rw-r--r--kopete/libkopete/private/kopetecommand.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/kopete/libkopete/private/kopetecommand.cpp b/kopete/libkopete/private/kopetecommand.cpp
index 52588f2e..1f8969f6 100644
--- a/kopete/libkopete/private/kopetecommand.cpp
+++ b/kopete/libkopete/private/kopetecommand.cpp
@@ -13,7 +13,7 @@
*************************************************************************
*/
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kapplication.h>
#include <kdebug.h>
#include <kinputdialog.h>
@@ -25,17 +25,17 @@
#include "kopetecommand.h"
#include "kopeteuiglobal.h"
-Kopete::Command::Command( QObject *parent, const QString &command, const char* handlerSlot,
- const QString &help, Kopete::CommandHandler::CommandType type, const QString &formatString,
- uint minArgs, int maxArgs, const KShortcut &cut, const QString &pix )
+Kopete::Command::Command( TQObject *parent, const TQString &command, const char* handlerSlot,
+ const TQString &help, Kopete::CommandHandler::CommandType type, const TQString &formatString,
+ uint minArgs, int maxArgs, const KShortcut &cut, const TQString &pix )
: KAction( command[0].upper() + command.right( command.length() - 1).lower(), pix, cut, parent,
- ( command.lower() + QString::fromLatin1("_command") ).latin1() )
+ ( command.lower() + TQString::fromLatin1("_command") ).latin1() )
{
init( command, handlerSlot, help, type, formatString, minArgs, maxArgs );
}
-void Kopete::Command::init( const QString &command, const char* slot, const QString &help,
- Kopete::CommandHandler::CommandType type, const QString &formatString, uint minArgs, int maxArgs )
+void Kopete::Command::init( const TQString &command, const char* slot, const TQString &help,
+ Kopete::CommandHandler::CommandType type, const TQString &formatString, uint minArgs, int maxArgs )
{
m_command = command;
m_help = help;
@@ -47,18 +47,18 @@ void Kopete::Command::init( const QString &command, const char* slot, const QStr
if( m_type == Kopete::CommandHandler::Normal )
{
- QObject::connect( this, SIGNAL( handleCommand( const QString &, Kopete::ChatSession *) ),
+ TQObject::connect( this, TQT_SIGNAL( handleCommand( const TQString &, Kopete::ChatSession *) ),
parent(), slot );
}
- QObject::connect( this, SIGNAL( activated() ), this, SLOT( slotAction() ) );
+ TQObject::connect( this, TQT_SIGNAL( activated() ), this, TQT_SLOT( slotAction() ) );
}
void Kopete::Command::slotAction()
{
Kopete::ChatSession *manager = Kopete::ChatSessionManager::self()->activeView()->msgManager();
- QString args;
+ TQString args;
if( m_minArgs > 0 )
{
args = KInputDialog::getText( i18n("Enter Arguments"), i18n("Enter the arguments to %1:").arg(m_command) );
@@ -69,9 +69,9 @@ void Kopete::Command::slotAction()
processCommand( args, manager, true );
}
-void Kopete::Command::processCommand( const QString &args, Kopete::ChatSession *manager, bool gui )
+void Kopete::Command::processCommand( const TQString &args, Kopete::ChatSession *manager, bool gui )
{
- QStringList mArgs = Kopete::CommandHandler::parseArguments( args );
+ TQStringList mArgs = Kopete::CommandHandler::parseArguments( args );
if( m_processing )
{
printError( i18n("Alias \"%1\" expands to itself.").arg( text() ), manager, gui );
@@ -98,12 +98,12 @@ void Kopete::Command::processCommand( const QString &args, Kopete::ChatSession *
if( m_type == Kopete::CommandHandler::UserAlias ||
m_type == Kopete::CommandHandler::SystemAlias )
{
- QString formatString = m_formatString;
+ TQString formatString = m_formatString;
// Translate %s to the whole string and %n to current nickname
- formatString.replace( QString::fromLatin1("%n"), manager->myself()->nickName() );
- formatString.replace( QString::fromLatin1("%s"), args );
+ formatString.replace( TQString::fromLatin1("%n"), manager->myself()->nickName() );
+ formatString.replace( TQString::fromLatin1("%s"), args );
// Translate %1..%N to word1..wordN
@@ -115,7 +115,7 @@ void Kopete::Command::processCommand( const QString &args, Kopete::ChatSession *
kdDebug(14010) << "New Command after processing alias: " << formatString << endl;
- Kopete::CommandHandler::commandHandler()->processMessage( QString::fromLatin1("/") + formatString, manager );
+ Kopete::CommandHandler::commandHandler()->processMessage( TQString::fromLatin1("/") + formatString, manager );
}
else
{
@@ -125,7 +125,7 @@ void Kopete::Command::processCommand( const QString &args, Kopete::ChatSession *
}
}
-void Kopete::Command::printError( const QString &error, Kopete::ChatSession *manager, bool gui ) const
+void Kopete::Command::printError( const TQString &error, Kopete::ChatSession *manager, bool gui ) const
{
if( gui )
{