summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/kcodecaction.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/protocols/irc/kcodecaction.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/protocols/irc/kcodecaction.cpp')
-rw-r--r--kopete/protocols/irc/kcodecaction.cpp38
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)