diff options
Diffstat (limited to 'kontact/plugins/summary/kcmkontactsummary.cpp')
-rw-r--r-- | kontact/plugins/summary/kcmkontactsummary.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kontact/plugins/summary/kcmkontactsummary.cpp b/kontact/plugins/summary/kcmkontactsummary.cpp index d52d991fc..cf8154168 100644 --- a/kontact/plugins/summary/kcmkontactsummary.cpp +++ b/kontact/plugins/summary/kcmkontactsummary.cpp @@ -33,9 +33,9 @@ #include <kplugininfo.h> #include <ktrader.h> -#include <qlayout.h> -#include <qlabel.h> -#include <qpixmap.h> +#include <tqlayout.h> +#include <tqlabel.h> +#include <tqpixmap.h> #include "kcmkontactsummary.h" @@ -43,7 +43,7 @@ extern "C" { - KDE_EXPORT KCModule *create_kontactsummary( QWidget *parent, const char * ) { + KDE_EXPORT KCModule *create_kontactsummary( TQWidget *parent, const char * ) { return new KCMKontactSummary( parent, "kcmkontactsummary" ); } } @@ -52,10 +52,10 @@ class PluginItem : public QCheckListItem { public: PluginItem( KPluginInfo *info, KListView *parent ) - : QCheckListItem( parent, QString::null, QCheckListItem::CheckBox ), + : TQCheckListItem( parent, TQString::null, TQCheckListItem::CheckBox ), mInfo( info ) { - QPixmap pm = KGlobal::iconLoader()->loadIcon( mInfo->icon(), KIcon::Small ); + TQPixmap pm = KGlobal::iconLoader()->loadIcon( mInfo->icon(), KIcon::Small ); setPixmap( 0, pm ); } @@ -64,21 +64,21 @@ class PluginItem : public QCheckListItem return mInfo; } - virtual QString text( int column ) const + virtual TQString text( int column ) const { if ( column == 0 ) return mInfo->name(); else if ( column == 1 ) return mInfo->comment(); else - return QString::null; + return TQString::null; } private: KPluginInfo *mInfo; }; -PluginView::PluginView( QWidget *parent, const char *name ) +PluginView::PluginView( TQWidget *parent, const char *name ) : KListView( parent, name ) { addColumn( i18n( "Name" ) ); @@ -90,12 +90,12 @@ PluginView::~PluginView() { } -KCMKontactSummary::KCMKontactSummary( QWidget *parent, const char *name ) +KCMKontactSummary::KCMKontactSummary( TQWidget *parent, const char *name ) : KCModule( parent, name ) { - QVBoxLayout *layout = new QVBoxLayout( this, 0, KDialog::spacingHint() ); + TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); - QLabel *label = new QLabel( i18n( "Here you can select which summary plugins to have visible in your summary view." ), this ); + TQLabel *label = new TQLabel( i18n( "Here you can select which summary plugins to have visible in your summary view." ), this ); layout->addWidget( label ); mPluginView = new PluginView( this ); @@ -103,8 +103,8 @@ KCMKontactSummary::KCMKontactSummary( QWidget *parent, const char *name ) layout->setStretchFactor( mPluginView, 1 ); - connect( mPluginView, SIGNAL( clicked( QListViewItem* ) ), - this, SLOT( itemClicked( QListViewItem* ) ) ); + connect( mPluginView, TQT_SIGNAL( clicked( TQListViewItem* ) ), + this, TQT_SLOT( itemClicked( TQListViewItem* ) ) ); load(); KAboutData *about = new KAboutData( I18N_NOOP( "kontactsummary" ), @@ -119,10 +119,10 @@ KCMKontactSummary::KCMKontactSummary( QWidget *parent, const char *name ) void KCMKontactSummary::load() { KTrader::OfferList offers = KTrader::self()->query( - QString::fromLatin1( "Kontact/Plugin" ), - QString( "[X-KDE-KontactPluginVersion] == %1" ).arg( KONTACT_PLUGIN_VERSION ) ); + TQString::fromLatin1( "Kontact/Plugin" ), + TQString( "[X-KDE-KontactPluginVersion] == %1" ).arg( KONTACT_PLUGIN_VERSION ) ); - QStringList activeSummaries; + TQStringList activeSummaries; KConfig config( "kontact_summaryrc" ); if ( !config.hasKey( "ActiveSummaries" ) ) { @@ -148,7 +148,7 @@ void KCMKontactSummary::load() if ( !(*it)->isPluginEnabled() ) continue; - QVariant var = (*it)->property( "X-KDE-KontactPluginHasSummary" ); + TQVariant var = (*it)->property( "X-KDE-KontactPluginHasSummary" ); if ( !var.isValid() ) continue; @@ -163,9 +163,9 @@ void KCMKontactSummary::load() void KCMKontactSummary::save() { - QStringList activeSummaries; + TQStringList activeSummaries; - QListViewItemIterator it( mPluginView, QListViewItemIterator::Checked ); + TQListViewItemIterator it( mPluginView, TQListViewItemIterator::Checked ); while ( it.current() ) { PluginItem *item = static_cast<PluginItem*>( it.current() ); activeSummaries.append( item->pluginInfo()->pluginName() ); @@ -181,7 +181,7 @@ void KCMKontactSummary::defaults() emit changed( true ); } -void KCMKontactSummary::itemClicked( QListViewItem* ) +void KCMKontactSummary::itemClicked( TQListViewItem* ) { emit changed( true ); } |