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/src/kcmkontact.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/src/kcmkontact.cpp')
-rw-r--r-- | kontact/src/kcmkontact.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/kontact/src/kcmkontact.cpp b/kontact/src/kcmkontact.cpp index 0c518d5c8..c14669ff8 100644 --- a/kontact/src/kcmkontact.cpp +++ b/kontact/src/kcmkontact.cpp @@ -32,17 +32,17 @@ #include <klocale.h> #include <ktrader.h> -#include <qbuttongroup.h> -#include <qcheckbox.h> -#include <qcombobox.h> -#include <qlabel.h> -#include <qlayout.h> +#include <tqbuttongroup.h> +#include <tqcheckbox.h> +#include <tqcombobox.h> +#include <tqlabel.h> +#include <tqlayout.h> #include <kdepimmacros.h> extern "C" { - KDE_EXPORT KCModule *create_kontactconfig( QWidget *parent, const char * ) { + KDE_EXPORT KCModule *create_kontactconfig( TQWidget *parent, const char * ) { return new KcmKontact( parent, "kcmkontact" ); } } @@ -50,8 +50,8 @@ extern "C" class PluginItem : public QListViewItem { public: - PluginItem( QListView *parent, const KService::Ptr &ptr ) - : QListViewItem( parent, ptr->name(), ptr->comment(), ptr->library() ), + PluginItem( TQListView *parent, const KService::Ptr &ptr ) + : TQListViewItem( parent, ptr->name(), ptr->comment(), ptr->library() ), mPtr( ptr ) { } @@ -65,11 +65,11 @@ class PluginItem : public QListViewItem KService::Ptr mPtr; }; -KcmKontact::KcmKontact( QWidget *parent, const char *name ) +KcmKontact::KcmKontact( TQWidget *parent, const char *name ) : KPrefsModule( Kontact::Prefs::self(), parent, name ) { - QBoxLayout *topLayout = new QVBoxLayout( this ); - QBoxLayout *pluginStartupLayout = new QHBoxLayout( topLayout ); + TQBoxLayout *topLayout = new TQVBoxLayout( this ); + TQBoxLayout *pluginStartupLayout = new TQHBoxLayout( topLayout ); topLayout->addStretch(); KPrefsWidBool *forceStartupPlugin = addWidBool( Kontact::Prefs::self()->forceStartupPluginItem(), this ); @@ -81,8 +81,8 @@ KcmKontact::KcmKontact( QWidget *parent, const char *name ) pluginStartupLayout->addWidget( selection->comboBox() ); selection->comboBox()->setEnabled( false ); - connect( forceStartupPlugin->checkBox(), SIGNAL( toggled( bool ) ), - selection->comboBox(), SLOT( setEnabled( bool ) ) ); + connect( forceStartupPlugin->checkBox(), TQT_SIGNAL( toggled( bool ) ), + selection->comboBox(), TQT_SLOT( setEnabled( bool ) ) ); load(); } @@ -100,11 +100,11 @@ const KAboutData* KcmKontact::aboutData() const } -PluginSelection::PluginSelection( KConfigSkeleton::ItemString *item, QWidget *parent ) +PluginSelection::PluginSelection( KConfigSkeleton::ItemString *item, TQWidget *parent ) { mItem = item; - mPluginCombo = new QComboBox( parent ); - connect( mPluginCombo, SIGNAL( activated( int ) ), SIGNAL( changed() ) ); + mPluginCombo = new TQComboBox( parent ); + connect( mPluginCombo, TQT_SIGNAL( activated( int ) ), TQT_SIGNAL( changed() ) ); } PluginSelection::~PluginSelection() @@ -114,15 +114,15 @@ PluginSelection::~PluginSelection() void PluginSelection::readConfig() { const 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 ) ); int activeComponent = 0; mPluginCombo->clear(); for ( KService::List::ConstIterator it = offers.begin(); it != offers.end(); ++it ) { KService::Ptr service = *it; // skip summary only plugins - QVariant var = service->property( "X-KDE-KontactPluginHasPart" ); + TQVariant var = service->property( "X-KDE-KontactPluginHasPart" ); if ( var.isValid() && var.toBool() == false ) continue; mPluginCombo->insertItem( service->name() ); @@ -141,9 +141,9 @@ void PluginSelection::writeConfig() mItem->setValue( ptr->property("X-KDE-PluginInfo-Name").toString() ); } -QValueList<QWidget *> PluginSelection::widgets() const +TQValueList<TQWidget *> PluginSelection::widgets() const { - QValueList<QWidget *> widgets; + TQValueList<TQWidget *> widgets; widgets.append( mPluginCombo ); return widgets; |