diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /ksirc/ksirc.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-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 'ksirc/ksirc.cpp')
-rw-r--r-- | ksirc/ksirc.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/ksirc/ksirc.cpp b/ksirc/ksirc.cpp index eddb450a..88abb6d6 100644 --- a/ksirc/ksirc.cpp +++ b/ksirc/ksirc.cpp @@ -15,7 +15,7 @@ #include <stdlib.h> -#include <qsessionmanager.h> +#include <tqsessionmanager.h> #include <kuniqueapplication.h> #include <kaboutdata.h> @@ -32,8 +32,8 @@ static const char description[] = I18N_NOOP("KDE IRC client"); -//QDict<KSircTopLevel> TopList; -//QDict<KSircMessageReceiver> TopList; +//TQDict<KSircTopLevel> TopList; +//TQDict<KSircMessageReceiver> TopList; class KCmdLineOptions options[] = { @@ -58,8 +58,8 @@ public: // if the controller is hidden KMWSessionManaged won't send the fake close event. // we want it in any way however. if ( controller->isHidden() ) { - QCloseEvent e; - QApplication::sendEvent( controller, &e ); + TQCloseEvent e; + TQApplication::sendEvent( controller, &e ); } return true; @@ -110,16 +110,16 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv ) KCmdLineArgs *args = KCmdLineArgs::parsedArgs(); - QCString nickName = args->getOption( "nick" ); - QCString server = args->getOption( "server" ); - QCString channel = args->getOption( "channel" ); + TQCString nickName = args->getOption( "nick" ); + TQCString server = args->getOption( "server" ); + TQCString channel = args->getOption( "channel" ); if ( !nickName.isEmpty() ) ksopts->server["global"].nick = nickName; if ( !server.isEmpty() ) { - QString ser = QString::fromLocal8Bit( server ); - QString port = "6667"; + TQString ser = TQString::fromLocal8Bit( server ); + TQString port = "6667"; if(ser.contains(":")){ port = ser.section(":", 1, 1); ser = ser.section(":", 0, 0); @@ -127,9 +127,9 @@ extern "C" KDE_EXPORT int kdemain( int argc, char ** argv ) KSircServer kss(ser, port, "", "", false); sc->new_ksircprocess( kss ); if ( !channel.isEmpty() ) { - QStringList channels = QStringList::split( ',', QString::fromLocal8Bit( channel ) ); - QStringList::ConstIterator it = channels.begin(); - QStringList::ConstIterator end = channels.end(); + TQStringList channels = TQStringList::split( ',', TQString::fromLocal8Bit( channel ) ); + TQStringList::ConstIterator it = channels.begin(); + TQStringList::ConstIterator end = channels.end(); for ( ; it != end; ++it ) { sc->new_toplevel( KSircChannel(ser, *it), true ); } |