From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/kopete/kopeteapplication.cpp | 44 ++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'kopete/kopete/kopeteapplication.cpp') diff --git a/kopete/kopete/kopeteapplication.cpp b/kopete/kopete/kopeteapplication.cpp index 3a481d3f..3db6c51f 100644 --- a/kopete/kopete/kopeteapplication.cpp +++ b/kopete/kopete/kopeteapplication.cpp @@ -20,8 +20,8 @@ #include "kopeteapplication.h" -#include -#include +#include +#include #include #include @@ -65,11 +65,11 @@ KopeteApplication::KopeteApplication() * FIXME: This is a workaround for a quite odd problem: * When starting up kopete and the msn plugin gets loaded it can bring up * a messagebox, in case the msg configuration is missing. This messagebox - * will result in a QApplication::enter_loop() call, an event loop is + * will result in a TQApplication::enter_loop() call, an event loop is * created. At this point however the loop_level is 0, because this is all * still inside the KopeteApplication constructor, before the exec() call from main. * When the messagebox is finished the loop_level will drop down to zero and - * QApplication thinks the application shuts down (this is usually the case + * TQApplication thinks the application shuts down (this is usually the case * when the loop_level goes down to zero) . So it emits aboutToQuit(), to * which KApplication is connected and re-emits shutdown() , to which again * KMainWindow (a KopeteWindow instance exists already) is connected. KMainWindow's @@ -83,10 +83,10 @@ KopeteApplication::KopeteApplication() * Additionally, it makes the GUI appear less 'blocking' during startup, so * there is a secondary benefit as well here. (Martijn) */ - QTimer::singleShot( 0, this, SLOT( slotLoadPlugins() ) ); + TQTimer::singleShot( 0, this, TQT_SLOT( slotLoadPlugins() ) ); m_mimeFactory = new Kopete::MimeSourceFactory; - QMimeSourceFactory::addFactory( m_mimeFactory ); + TQMimeSourceFactory::addFactory( m_mimeFactory ); //Create the emoticon installer m_emoticonHandler = new Kopete::EmoticonMimeTypeHandler; @@ -148,8 +148,8 @@ void KopeteApplication::slotLoadPlugins() */ // Prevent plugins from loading? (--disable=foo,bar) - QStringList disableArgs = QStringList::split( ',', args->getOption( "disable" ) ); - for ( QStringList::ConstIterator it = disableArgs.begin(); it != disableArgs.end(); ++it ) + TQStringList disableArgs = TQStringList::split( ',', args->getOption( "disable" ) ); + for ( TQStringList::ConstIterator it = disableArgs.begin(); it != disableArgs.end(); ++it ) { showConfigDialog = false; Kopete::PluginManager::self()->setPluginEnabled( *it, false ); @@ -160,8 +160,8 @@ void KopeteApplication::slotLoadPlugins() { config->deleteGroup( "Plugins", true ); showConfigDialog = false; - QStringList plugins = QStringList::split( ',', args->getOption( "load-plugins" ) ); - for ( QStringList::ConstIterator it = plugins.begin(); it != plugins.end(); ++it ) + TQStringList plugins = TQStringList::split( ',', args->getOption( "load-plugins" ) ); + for ( TQStringList::ConstIterator it = plugins.begin(); it != plugins.end(); ++it ) Kopete::PluginManager::self()->setPluginEnabled( *it, true ); } @@ -177,15 +177,15 @@ void KopeteApplication::slotLoadPlugins() showConfigDialog = false; // pretend all plugins were loaded :) - QTimer::singleShot(0, this, SLOT( slotAllPluginsLoaded() )); + TQTimer::singleShot(0, this, TQT_SLOT( slotAllPluginsLoaded() )); } else { Kopete::PluginManager::self()->loadAllPlugins(); } - connect( Kopete::PluginManager::self(), SIGNAL( allPluginsLoaded() ), - this, SLOT( slotAllPluginsLoaded() )); + connect( Kopete::PluginManager::self(), TQT_SIGNAL( allPluginsLoaded() ), + this, TQT_SLOT( slotAllPluginsLoaded() )); if( showConfigDialog ) { @@ -217,24 +217,24 @@ void KopeteApplication::slotAllPluginsLoaded() // Handle things like '--autoconnect foo,bar --autoconnect foobar' QCStringList connectArgsC = args->getOptionList( "autoconnect" ); - QStringList connectArgs; + TQStringList connectArgs; for ( QCStringList::ConstIterator it = connectArgsC.begin(); it != connectArgsC.end(); ++it ) { - QStringList split = QStringList::split( ',', QString::fromLatin1( *it ) ); + TQStringList split = TQStringList::split( ',', TQString::fromLatin1( *it ) ); - for ( QStringList::ConstIterator it2 = split.begin(); it2 != split.end(); ++it2 ) + for ( TQStringList::ConstIterator it2 = split.begin(); it2 != split.end(); ++it2 ) { connectArgs.append( *it2 ); } } - for ( QStringList::ConstIterator i = connectArgs.begin(); i != connectArgs.end(); ++i ) + for ( TQStringList::ConstIterator i = connectArgs.begin(); i != connectArgs.end(); ++i ) { - QRegExp rx( QString::fromLatin1( "([^\\|]*)\\|\\|(.*)" ) ); + TQRegExp rx( TQString::fromLatin1( "([^\\|]*)\\|\\|(.*)" ) ); rx.search( *i ); - QString protocolId = rx.cap( 1 ); - QString accountId = rx.cap( 2 ); + TQString protocolId = rx.cap( 1 ); + TQString accountId = rx.cap( 2 ); if ( accountId.isEmpty() ) { @@ -244,7 +244,7 @@ void KopeteApplication::slotAllPluginsLoaded() continue; } - QPtrListIterator it( Kopete::AccountManager::self()->accounts() ); + TQPtrListIterator it( Kopete::AccountManager::self()->accounts() ); Kopete::Account *account; while ( ( account = it.current() ) != 0 ) { @@ -316,7 +316,7 @@ void KopeteApplication::quitKopete() m_isShuttingDown = true; // close all windows - QPtrListIterator it(*KMainWindow::memberList); + TQPtrListIterator it(*KMainWindow::memberList); for (it.toFirst(); it.current(); ++it) { if ( !it.current()->close() ) -- cgit v1.2.3