diff options
Diffstat (limited to 'libkdepim/kconfigwizard.cpp')
-rw-r--r-- | libkdepim/kconfigwizard.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/libkdepim/kconfigwizard.cpp b/libkdepim/kconfigwizard.cpp index 3e0a18b10..6db0f9992 100644 --- a/libkdepim/kconfigwizard.cpp +++ b/libkdepim/kconfigwizard.cpp @@ -27,11 +27,11 @@ #include <kmessagebox.h> #include <kapplication.h> -#include <qlistview.h> -#include <qlayout.h> -#include <qtimer.h> +#include <tqlistview.h> +#include <tqlayout.h> +#include <tqtimer.h> -KConfigWizard::KConfigWizard( QWidget *parent, +KConfigWizard::KConfigWizard( TQWidget *parent, char *name, bool modal ) : KDialogBase( TreeList, i18n("Configuration Wizard"), Ok|Cancel, Ok, parent, name, modal ), @@ -40,7 +40,7 @@ KConfigWizard::KConfigWizard( QWidget *parent, init(); } -KConfigWizard::KConfigWizard( KConfigPropagator *propagator, QWidget *parent, +KConfigWizard::KConfigWizard( KConfigPropagator *propagator, TQWidget *parent, char *name, bool modal ) : KDialogBase( TreeList, i18n("Configuration Wizard"), Ok|Cancel, Ok, parent, name, modal ), @@ -56,10 +56,10 @@ KConfigWizard::~KConfigWizard() void KConfigWizard::init() { - connect( this, SIGNAL( aboutToShowPage( QWidget * ) ), - SLOT( slotAboutToShowPage( QWidget * ) ) ); + connect( this, TQT_SIGNAL( aboutToShowPage( TQWidget * ) ), + TQT_SLOT( slotAboutToShowPage( TQWidget * ) ) ); - QTimer::singleShot( 0, this, SLOT( readConfig() ) ); + TQTimer::singleShot( 0, this, TQT_SLOT( readConfig() ) ); } void KConfigWizard::setPropagator( KConfigPropagator *p ) @@ -67,24 +67,24 @@ void KConfigWizard::setPropagator( KConfigPropagator *p ) mPropagator = p; } -void KConfigWizard::slotAboutToShowPage( QWidget *page ) +void KConfigWizard::slotAboutToShowPage( TQWidget *page ) { if ( page == mChangesPage ) { updateChanges(); } } -QFrame *KConfigWizard::createWizardPage( const QString &title ) +TQFrame *KConfigWizard::createWizardPage( const TQString &title ) { return addPage( title ); } void KConfigWizard::setupRulesPage() { - QFrame *topFrame = addPage( i18n("Rules") ); - QVBoxLayout *topLayout = new QVBoxLayout( topFrame ); + TQFrame *topFrame = addPage( i18n("Rules") ); + TQVBoxLayout *topLayout = new TQVBoxLayout( topFrame ); - mRuleView = new QListView( topFrame ); + mRuleView = new TQListView( topFrame ); topLayout->addWidget( mRuleView ); mRuleView->addColumn( i18n("Source") ); @@ -107,25 +107,25 @@ void KConfigWizard::updateRules() KConfigPropagator::Rule::List::ConstIterator it; for( it = rules.begin(); it != rules.end(); ++it ) { KConfigPropagator::Rule r = *it; - QString source = r.sourceFile + "/" + r.sourceGroup + "/" + + TQString source = r.sourceFile + "/" + r.sourceGroup + "/" + r.sourceEntry; - QString target = r.targetFile + "/" + r.targetGroup + "/" + + TQString target = r.targetFile + "/" + r.targetGroup + "/" + r.targetEntry; - QString condition; + TQString condition; KConfigPropagator::Condition c = r.condition; if ( c.isValid ) { condition = c.file + "/" + c.group + "/" + c.key + " = " + c.value; } - new QListViewItem( mRuleView, source, target, condition ); + new TQListViewItem( mRuleView, source, target, condition ); } } void KConfigWizard::setupChangesPage() { - QFrame *topFrame = addPage( i18n("Changes") ); - QVBoxLayout *topLayout = new QVBoxLayout( topFrame ); + TQFrame *topFrame = addPage( i18n("Changes") ); + TQVBoxLayout *topLayout = new TQVBoxLayout( topFrame ); - mChangeView = new QListView( topFrame ); + mChangeView = new TQListView( topFrame ); topLayout->addWidget( mChangeView ); mChangeView->addColumn( i18n("Action") ); @@ -154,7 +154,7 @@ void KConfigWizard::updateChanges() KConfigPropagator::Change::List changes = mPropagator->changes(); KConfigPropagator::Change *c; for( c = changes.first(); c; c = changes.next() ) { - new QListViewItem( mChangeView, mChangeView->lastItem(), c->title(), c->arg1(), c->arg2() ); + new TQListViewItem( mChangeView, mChangeView->lastItem(), c->title(), c->arg1(), c->arg2() ); } } @@ -174,7 +174,7 @@ void KConfigWizard::readConfig() void KConfigWizard::slotOk() { - QString error = validate(); + TQString error = validate(); if ( error.isNull() ) { usrWriteConfig(); |