summaryrefslogtreecommitdiffstats
path: root/libkdepim/kconfigwizard.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /libkdepim/kconfigwizard.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-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 'libkdepim/kconfigwizard.cpp')
-rw-r--r--libkdepim/kconfigwizard.cpp44
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();