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 /wizards/sloxwizard.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 'wizards/sloxwizard.cpp')
-rw-r--r-- | wizards/sloxwizard.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/wizards/sloxwizard.cpp b/wizards/sloxwizard.cpp index 8ac821dbc..5cfdd2bbf 100644 --- a/wizards/sloxwizard.cpp +++ b/wizards/sloxwizard.cpp @@ -31,14 +31,14 @@ #include <klineedit.h> #include <klocale.h> -#include <qlayout.h> -#include <qcheckbox.h> -#include <qlabel.h> +#include <tqlayout.h> +#include <tqcheckbox.h> +#include <tqlabel.h> -QString sloxUrl() +TQString sloxUrl() { - QString url; + TQString url; if ( SloxConfig::self()->useHttps() ) url = "https://"; else url = "http://"; @@ -122,8 +122,8 @@ class CreateSloxKabcResource : public KConfigPropagator::Change m.readConfig(); KURL url( sloxUrl() ); - QString user( SloxConfig::self()->user() ); - QString password( SloxConfig::self()->password() ); + TQString user( SloxConfig::self()->user() ); + TQString password( SloxConfig::self()->password() ); KABC::ResourceSlox *r = new KABC::ResourceSlox( url, user, password ); r->setResourceName( i18n("Openexchange Server") ); @@ -221,31 +221,31 @@ class SloxPropagator : public KConfigPropagator SloxWizard::SloxWizard() : KConfigWizard( new SloxPropagator ) { - QFrame *page = createWizardPage( i18n("SUSE LINUX OpenExchange Server") ); + TQFrame *page = createWizardPage( i18n("SUSE LINUX OpenExchange Server") ); - QGridLayout *topLayout = new QGridLayout( page ); + TQGridLayout *topLayout = new TQGridLayout( page ); topLayout->setSpacing( spacingHint() ); - QLabel *label = new QLabel( i18n("Server name:"), page ); + TQLabel *label = new TQLabel( i18n("Server name:"), page ); topLayout->addWidget( label, 0, 0 ); mServerEdit = new KLineEdit( page ); topLayout->addWidget( mServerEdit, 0, 1 ); - label = new QLabel( i18n("User name:"), page ); + label = new TQLabel( i18n("User name:"), page ); topLayout->addWidget( label, 1, 0 ); mUserEdit = new KLineEdit( page ); topLayout->addWidget( mUserEdit, 1, 1 ); - label = new QLabel( i18n("Password:"), page ); + label = new TQLabel( i18n("Password:"), page ); topLayout->addWidget( label, 2, 0 ); mPasswordEdit = new KLineEdit( page ); mPasswordEdit->setEchoMode( KLineEdit::Password ); topLayout->addWidget( mPasswordEdit, 2, 1 ); - mSavePasswordCheck = new QCheckBox( i18n("Save password"), page ); + mSavePasswordCheck = new TQCheckBox( i18n("Save password"), page ); topLayout->addMultiCellWidget( mSavePasswordCheck, 3, 3, 0, 1 ); - mSecureCheck = new QCheckBox( i18n("Encrypt communication with server"), + mSecureCheck = new TQCheckBox( i18n("Encrypt communication with server"), page ); topLayout->addMultiCellWidget( mSecureCheck, 4, 4, 0, 1 ); @@ -261,7 +261,7 @@ SloxWizard::~SloxWizard() { } -QString SloxWizard::validate() +TQString SloxWizard::validate() { KURL server( mServerEdit->text() ); if ( !server.protocol().isEmpty() || @@ -269,7 +269,7 @@ QString SloxWizard::validate() mUserEdit->text().isEmpty() || mPasswordEdit->text().isEmpty() ) return i18n( "Please fill in all fields." ); - return QString::null; + return TQString::null; } void SloxWizard::usrReadConfig() |