diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:53:50 +0000 |
commit | 7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch) | |
tree | 8474f9b444b2756228600050f07a7ff25de532b2 /kontact/plugins/summary/summaryview_plugin.cpp | |
parent | f587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff) | |
download | tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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(); } |