summaryrefslogtreecommitdiffstats
path: root/kontact/src/kcmkontact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kontact/src/kcmkontact.cpp')
-rw-r--r--kontact/src/kcmkontact.cpp42
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;