summaryrefslogtreecommitdiffstats
path: root/kopete/kopete/kopeteapplication.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/kopete/kopeteapplication.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/kopete/kopeteapplication.cpp')
-rw-r--r--kopete/kopete/kopeteapplication.cpp44
1 files changed, 22 insertions, 22 deletions
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 <qtimer.h>
-#include <qregexp.h>
+#include <tqtimer.h>
+#include <tqregexp.h>
#include <kconfig.h>
#include <kdebug.h>
@@ -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<Kopete::Account> it( Kopete::AccountManager::self()->accounts() );
+ TQPtrListIterator<Kopete::Account> 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<KMainWindow> it(*KMainWindow::memberList);
+ TQPtrListIterator<KMainWindow> it(*KMainWindow::memberList);
for (it.toFirst(); it.current(); ++it)
{
if ( !it.current()->close() )