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/egroupwarewizard.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/egroupwarewizard.cpp')
-rw-r--r-- | wizards/egroupwarewizard.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/wizards/egroupwarewizard.cpp b/wizards/egroupwarewizard.cpp index 75898ead3..dcf74944f 100644 --- a/wizards/egroupwarewizard.cpp +++ b/wizards/egroupwarewizard.cpp @@ -34,13 +34,13 @@ #include <klocale.h> #include <kmessagebox.h> -#include <qcheckbox.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qwhatsthis.h> +#include <tqcheckbox.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqwhatsthis.h> -static QString createURL( const QString &server, bool useSSL, const QString &location ) +static TQString createURL( const TQString &server, bool useSSL, const TQString &location ) { KURL url; @@ -70,7 +70,7 @@ class CreateEGroupwareKabcResource : public KConfigPropagator::Change KRES::Manager<KABC::Resource> manager( "contact" ); manager.readConfig(); - QString url = createURL( EGroupwareConfig::self()->server(), EGroupwareConfig::self()->useSSLConnection(), EGroupwareConfig::self()->xmlrpc_location() ); + TQString url = createURL( EGroupwareConfig::self()->server(), EGroupwareConfig::self()->useSSLConnection(), EGroupwareConfig::self()->xmlrpc_location() ); KABC::ResourceXMLRPC *resource = new KABC::ResourceXMLRPC( url, EGroupwareConfig::self()->domain(), EGroupwareConfig::self()->user(), @@ -85,7 +85,7 @@ class CreateEGroupwareKabcResource : public KConfigPropagator::Change class ChangeEGroupwareKabcResource : public KConfigPropagator::Change { public: - ChangeEGroupwareKabcResource( const QString &identifier ) + ChangeEGroupwareKabcResource( const TQString &identifier ) : KConfigPropagator::Change( i18n("Create eGroupware Addressbook Resource") ), mIdentifier( identifier ) { @@ -117,7 +117,7 @@ class ChangeEGroupwareKabcResource : public KConfigPropagator::Change } private: - QString mIdentifier; + TQString mIdentifier; }; class CreateEGroupwareKcalResource : public KConfigPropagator::Change @@ -149,7 +149,7 @@ class CreateEGroupwareKcalResource : public KConfigPropagator::Change class ChangeEGroupwareKcalResource : public KConfigPropagator::Change { public: - ChangeEGroupwareKcalResource( const QString &identifier ) + ChangeEGroupwareKcalResource( const TQString &identifier ) : KConfigPropagator::Change( i18n( "Create eGroupware Calendar Resource" ) ), mIdentifier( identifier ) { @@ -181,7 +181,7 @@ class ChangeEGroupwareKcalResource : public KConfigPropagator::Change } private: - QString mIdentifier; + TQString mIdentifier; }; class CreateEGroupwareKnotesResource : public KConfigPropagator::Change @@ -199,7 +199,7 @@ class CreateEGroupwareKnotesResource : public KConfigPropagator::Change KRES::Manager<ResourceNotes> manager( "notes" ); manager.readConfig(); - QString url = createURL( EGroupwareConfig::self()->server(), EGroupwareConfig::self()->useSSLConnection(), EGroupwareConfig::self()->xmlrpc_location() ); + TQString url = createURL( EGroupwareConfig::self()->server(), EGroupwareConfig::self()->useSSLConnection(), EGroupwareConfig::self()->xmlrpc_location() ); KNotes::ResourceXMLRPC *resource = new KNotes::ResourceXMLRPC(); resource->setResourceName( i18n( "eGroupware" ) ); @@ -215,7 +215,7 @@ class CreateEGroupwareKnotesResource : public KConfigPropagator::Change class ChangeEGroupwareKnotesResource : public KConfigPropagator::Change { public: - ChangeEGroupwareKnotesResource( const QString &identifier ) + ChangeEGroupwareKnotesResource( const TQString &identifier ) : KConfigPropagator::Change( i18n("Create eGroupware Notes Resource") ), mIdentifier( identifier ) { @@ -247,7 +247,7 @@ class ChangeEGroupwareKnotesResource : public KConfigPropagator::Change } private: - QString mIdentifier; + TQString mIdentifier; }; class EGroupwarePropagator : public KConfigPropagator @@ -301,45 +301,45 @@ class EGroupwarePropagator : public KConfigPropagator EGroupwareWizard::EGroupwareWizard() : KConfigWizard( new EGroupwarePropagator ) { - QFrame *page = createWizardPage( i18n( "eGroupware Server" ) ); + TQFrame *page = createWizardPage( i18n( "eGroupware 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 ); label->setBuddy( mServerEdit ); topLayout->addWidget( mServerEdit, 0, 1 ); - label = new QLabel( i18n( "&Domain name:" ), page ); + label = new TQLabel( i18n( "&Domain name:" ), page ); topLayout->addWidget( label, 1, 0 ); mDomainEdit = new KLineEdit( page ); label->setBuddy( mDomainEdit ); topLayout->addWidget( mDomainEdit, 1, 1 ); - label = new QLabel( i18n( "&Username:" ), page ); + label = new TQLabel( i18n( "&Username:" ), page ); topLayout->addWidget( label, 2, 0 ); mUserEdit = new KLineEdit( page ); label->setBuddy( mUserEdit ); topLayout->addWidget( mUserEdit, 2, 1 ); - label = new QLabel( i18n( "&Password:" ), page ); + label = new TQLabel( i18n( "&Password:" ), page ); topLayout->addWidget( label, 3, 0 ); mPasswordEdit = new KLineEdit( page ); mPasswordEdit->setEchoMode( KLineEdit::Password ); label->setBuddy( mPasswordEdit ); topLayout->addWidget( mPasswordEdit, 3, 1 ); - label = new QLabel( i18n( "&Location xmlrpc.php on server:" ), page ); + label = new TQLabel( i18n( "&Location xmlrpc.php on server:" ), page ); topLayout->addWidget( label, 4, 0 ); mXMLRPC = new KLineEdit( page ); mXMLRPC->setMinimumWidth( 175 ); label->setBuddy( mXMLRPC ); topLayout->addWidget( mXMLRPC, 4, 1 ); - QWhatsThis::add( label, i18n( "Some servers may not have the xmlrpc.php file in the 'egroupware' folder of the server. With this option it is possible to eventually change the path to that file. For most servers, the default value is OK." ) ); + TQWhatsThis::add( label, i18n( "Some servers may not have the xmlrpc.php file in the 'egroupware' folder of the server. With this option it is possible to eventually change the path to that file. For most servers, the default value is OK." ) ); - mUseSSLConnectionCheck = new QCheckBox( i18n( "Use SS&L connection" ), page ); + mUseSSLConnectionCheck = new TQCheckBox( i18n( "Use SS&L connection" ), page ); topLayout->addMultiCellWidget( mUseSSLConnectionCheck, 5, 5, 0, 1 ); topLayout->setRowStretch( 6, 1 ); @@ -354,7 +354,7 @@ EGroupwareWizard::~EGroupwareWizard() { } -QString EGroupwareWizard::validate() +TQString EGroupwareWizard::validate() { if( !mXMLRPC->text().endsWith( "xmlrpc.php" ) ) return i18n( "Invalid path to xmlrpc.php entered." ); @@ -366,7 +366,7 @@ QString EGroupwareWizard::validate() mXMLRPC->text().isEmpty() ) return i18n( "Please fill in all fields." ); - return QString::null; + return TQString::null; } void EGroupwareWizard::usrReadConfig() |