diff options
Diffstat (limited to 'kopete/protocols/irc/kcodecaction.cpp')
-rw-r--r-- | kopete/protocols/irc/kcodecaction.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/kopete/protocols/irc/kcodecaction.cpp b/kopete/protocols/irc/kcodecaction.cpp index e32a1787..f7e4ee24 100644 --- a/kopete/protocols/irc/kcodecaction.cpp +++ b/kopete/protocols/irc/kcodecaction.cpp @@ -14,37 +14,37 @@ * * ************************************************************************* */ -#include <qstringlist.h> -#include <qtextcodec.h> +#include <tqstringlist.h> +#include <tqtextcodec.h> #include <kcharsets.h> #include "kcodecaction.h" -KCodecAction::KCodecAction( const QString &text, const KShortcut &cut, - QObject *parent, const char *name ) : KSelectAction( text, "", cut, parent, name ) +KCodecAction::KCodecAction( const TQString &text, const KShortcut &cut, + TQObject *parent, const char *name ) : KSelectAction( text, "", cut, parent, name ) { - QObject::connect( this, SIGNAL( activated( const QString & ) ), - this, SLOT( slotActivated( const QString & ) ) ); + TQObject::connect( this, TQT_SIGNAL( activated( const TQString & ) ), + this, TQT_SLOT( slotActivated( const TQString & ) ) ); setItems( KCodecAction::supportedEncodings() ); } -void KCodecAction::slotActivated( const QString & text ) +void KCodecAction::slotActivated( const TQString & text ) { /* text is something like "Western European ( iso-8859-1 )", but we must give * codecForName() only the "iso-8859-1" part. */ - QString encoding = KGlobal::charsets()->encodingForName(text); + TQString encoding = KGlobal::charsets()->encodingForName(text); emit activated( KGlobal::charsets()->codecForName(encoding) ); } -void KCodecAction::setCodec( const QTextCodec *codec ) +void KCodecAction::setCodec( const TQTextCodec *codec ) { - QStringList items = this->items(); + TQStringList items = this->items(); int i = 0; - for (QStringList::ConstIterator it = items.begin(), end = items.end(); it != end; ++it, ++i) { - QString encoding = KGlobal::charsets()->encodingForName(*it); + for (TQStringList::ConstIterator it = items.begin(), end = items.end(); it != end; ++it, ++i) { + TQString encoding = KGlobal::charsets()->encodingForName(*it); if (KGlobal::charsets()->codecForName(encoding)->mibEnum() == codec->mibEnum()) { setCurrentItem(i); @@ -59,17 +59,17 @@ void KCodecAction::setCodec( const QTextCodec *codec ) * This piece of code from kdepim/kmail/kmmsgbase.cpp */ -QStringList KCodecAction::supportedEncodings(bool usAscii) +TQStringList KCodecAction::supportedEncodings(bool usAscii) { - QStringList encodingNames = KGlobal::charsets()->availableEncodingNames(); - QStringList encodings; - QMap<QString, bool> mimeNames; + TQStringList encodingNames = KGlobal::charsets()->availableEncodingNames(); + TQStringList encodings; + TQMap<TQString, bool> mimeNames; - for (QStringList::ConstIterator it = encodingNames.begin(); + for (TQStringList::ConstIterator it = encodingNames.begin(); it != encodingNames.end(); ++it) { - QTextCodec *codec = KGlobal::charsets()->codecForName(*it); - QString mimeName = (codec) ? QString(codec->mimeName()).lower() : (*it); + TQTextCodec *codec = KGlobal::charsets()->codecForName(*it); + TQString mimeName = (codec) ? TQString(codec->mimeName()).lower() : (*it); if (mimeNames.find(mimeName) == mimeNames.end()) { encodings.append(KGlobal::charsets()->languageForEncoding(*it) |