From 9c9412b30c54468adc9e506cc76c5d113fbf5056 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:14:03 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- kopete/libkopete/private/kopetecommand.cpp | 6 +++--- kopete/libkopete/private/kopetecommand.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'kopete/libkopete/private') diff --git a/kopete/libkopete/private/kopetecommand.cpp b/kopete/libkopete/private/kopetecommand.cpp index d86313d8..116fee30 100644 --- a/kopete/libkopete/private/kopetecommand.cpp +++ b/kopete/libkopete/private/kopetecommand.cpp @@ -27,8 +27,8 @@ 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, + uint minArgs, int maxArgs, const TDEShortcut &cut, const TQString &pix ) + : TDEAction( command[0].upper() + command.right( command.length() - 1).lower(), pix, cut, parent, ( command.lower() + TQString::fromLatin1("_command") ).latin1() ) { init( command, handlerSlot, help, type, formatString, minArgs, maxArgs ); @@ -88,7 +88,7 @@ void Kopete::Command::processCommand( const TQString &args, Kopete::ChatSession "\"%1\" has a maximum of %n arguments.", m_minArgs) .arg( text() ), manager, gui ); } - else if( !TDEApplication::kApplication()->authorizeKAction( name() ) ) + else if( !TDEApplication::kApplication()->authorizeTDEAction( name() ) ) { printError( i18n("You are not authorized to perform the command \"%1\".").arg(text()), manager, gui ); } diff --git a/kopete/libkopete/private/kopetecommand.h b/kopete/libkopete/private/kopetecommand.h index 80e68fea..177f3b80 100644 --- a/kopete/libkopete/private/kopetecommand.h +++ b/kopete/libkopete/private/kopetecommand.h @@ -27,7 +27,7 @@ namespace Kopete class ChatSession; -class Command : public KAction +class Command : public TDEAction { Q_OBJECT @@ -52,7 +52,7 @@ class Command : public KAction */ Command( TQObject *parent, const TQString &command, const char* handlerSlot, const TQString &help = TQString(), CommandHandler::CommandType type = CommandHandler::Normal, const TQString &formatString = TQString(), - uint minArgs = 0, int maxArgs = -1, const KShortcut &cut = 0, + uint minArgs = 0, int maxArgs = -1, const TDEShortcut &cut = 0, const TQString &pix = TQString() ); /** -- cgit v1.2.1