diff options
Diffstat (limited to 'kontact/plugins/summary/summaryview_plugin.cpp')
-rw-r--r-- | kontact/plugins/summary/summaryview_plugin.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kontact/plugins/summary/summaryview_plugin.cpp b/kontact/plugins/summary/summaryview_plugin.cpp index a73faf7e0..9f9073808 100644 --- a/kontact/plugins/summary/summaryview_plugin.cpp +++ b/kontact/plugins/summary/summaryview_plugin.cpp @@ -27,23 +27,23 @@ #include <kaboutdata.h> #include <kaction.h> -#include <qpopupmenu.h> +#include <tqpopupmenu.h> typedef KGenericFactory< SummaryView, Kontact::Core > SummaryViewFactory; K_EXPORT_COMPONENT_FACTORY( libkontact_summaryplugin, SummaryViewFactory( "kontact_summaryplugin" ) ) -SummaryView::SummaryView( Kontact::Core *core, const char *name, const QStringList& ) +SummaryView::SummaryView( Kontact::Core *core, const char *name, const TQStringList& ) : Kontact::Plugin( core, core, name), mAboutData( 0 ), mPart( 0 ) { setInstance( SummaryViewFactory::instance() ); mSyncAction = new KSelectAction( i18n( "Synchronize All" ), "reload", 0, this, - SLOT( doSync() ), actionCollection(), + TQT_SLOT( doSync() ), actionCollection(), "kontact_summary_sync" ); - connect( mSyncAction, SIGNAL( activated( const QString& ) ), this, SLOT( syncAccount( const QString& ) ) ); - connect( mSyncAction->popupMenu(), SIGNAL( aboutToShow() ), this, SLOT( fillSyncActionSubEntries() ) ); + connect( mSyncAction, TQT_SIGNAL( activated( const TQString& ) ), this, TQT_SLOT( syncAccount( const TQString& ) ) ); + connect( mSyncAction->popupMenu(), TQT_SIGNAL( aboutToShow() ), this, TQT_SLOT( fillSyncActionSubEntries() ) ); insertSyncAction( mSyncAction ); fillSyncActionSubEntries(); @@ -51,7 +51,7 @@ SummaryView::SummaryView( Kontact::Core *core, const char *name, const QStringLi void SummaryView::fillSyncActionSubEntries() { - QStringList menuItems; + TQStringList menuItems; menuItems.append( i18n("All") ); DCOPRef ref( "kmail", "KMailIface" ); @@ -59,16 +59,16 @@ void SummaryView::fillSyncActionSubEntries() if ( reply.isValid() ) { - const QStringList accounts = reply; + const TQStringList accounts = reply; menuItems += accounts; } mSyncAction->clear(); mSyncAction->setItems( menuItems ); } -void SummaryView::syncAccount( const QString& account ) +void SummaryView::syncAccount( const TQString& account ) { - const QString acc = account == i18n("All") ? QString() : account; + const TQString acc = account == i18n("All") ? TQString() : account; DCOPRef ref( "kmail", "KMailIface" ); ref.send( "checkAccount", acc ); fillSyncActionSubEntries(); @@ -83,12 +83,12 @@ void SummaryView::doSync() if ( mPart ) mPart->updateSummaries(); - const QValueList<Kontact::Plugin*> pluginList = core()->pluginList(); - for ( QValueList<Kontact::Plugin*>::ConstIterator it = pluginList.begin(), end = pluginList.end(); + const TQValueList<Kontact::Plugin*> pluginList = core()->pluginList(); + for ( TQValueList<Kontact::Plugin*>::ConstIterator it = pluginList.begin(), end = pluginList.end(); it != end; ++it ) { // execute all sync actions but our own - QPtrList<KAction> *actions = (*it)->syncActions(); - for ( QPtrList<KAction>::Iterator jt = actions->begin(), end = actions->end(); jt != end; ++jt ) { + TQPtrList<KAction> *actions = (*it)->syncActions(); + for ( TQPtrList<KAction>::Iterator jt = actions->begin(), end = actions->end(); jt != end; ++jt ) { if ( *jt != mSyncAction ) (*jt)->activate(); } |