summaryrefslogtreecommitdiffstats
path: root/wizards/kolabwizard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/kolabwizard.cpp')
-rw-r--r--wizards/kolabwizard.cpp62
1 files changed, 31 insertions, 31 deletions
diff --git a/wizards/kolabwizard.cpp b/wizards/kolabwizard.cpp
index 6dc720594..e8a452b16 100644
--- a/wizards/kolabwizard.cpp
+++ b/wizards/kolabwizard.cpp
@@ -35,12 +35,12 @@
#include <klineedit.h>
#include <klocale.h>
-#include <qcheckbox.h>
-#include <qhbuttongroup.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qradiobutton.h>
-#include <qwhatsthis.h>
+#include <tqcheckbox.h>
+#include <tqhbuttongroup.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqradiobutton.h>
+#include <tqwhatsthis.h>
class SetupLDAPSearchAccount : public KConfigPropagator::Change
{
@@ -52,16 +52,16 @@ class SetupLDAPSearchAccount : public KConfigPropagator::Change
void apply()
{
- const QString host = KolabConfig::self()->server();
+ const TQString host = KolabConfig::self()->server();
// Figure out the basedn
- QString basedn = host;
+ TQString basedn = host;
// If the user gave a full email address, the domain name
// of that overrides the server name for the ldap dn
- const QString user = KolabConfig::self()->user();
+ const TQString user = KolabConfig::self()->user();
int pos = user.find( "@" );
if ( pos > 0 ) {
- const QString h = user.mid( pos+1 );
+ const TQString h = user.mid( pos+1 );
if ( !h.isEmpty() )
// The user did type in a domain on the email address. Use that
basedn = h;
@@ -81,13 +81,13 @@ class SetupLDAPSearchAccount : public KConfigPropagator::Change
bool hasMyServer = false;
uint selHosts = c.readNumEntry("NumSelectedHosts", 0);
for ( uint i = 0 ; i < selHosts && !hasMyServer; ++i )
- if ( c.readEntry( QString("SelectedHost%1").arg(i) ) == host )
+ if ( c.readEntry( TQString("SelectedHost%1").arg(i) ) == host )
hasMyServer = true;
if ( !hasMyServer ) {
c.writeEntry( "NumSelectedHosts", selHosts + 1 );
- c.writeEntry( QString("SelectedHost%1").arg(selHosts), host);
- c.writeEntry( QString("SelectedBase%1").arg(selHosts), basedn);
- c.writeEntry( QString("SelectedPort%1").arg(selHosts), "389");
+ c.writeEntry( TQString("SelectedHost%1").arg(selHosts), host);
+ c.writeEntry( TQString("SelectedBase%1").arg(selHosts), basedn);
+ c.writeEntry( TQString("SelectedPort%1").arg(selHosts), "389");
}
}
@@ -179,7 +179,7 @@ class KolabPropagator : public KConfigPropagator
c->name = "FreeBusyPublishUrl";
- QString user = KolabConfig::self()->user();
+ TQString user = KolabConfig::self()->user();
// We now use the full email address in the freebusy URL
//int pos = user.find( "@" );
//if ( pos > 0 ) user = user.left( pos );
@@ -254,64 +254,64 @@ class KolabPropagator : public KConfigPropagator
KolabWizard::KolabWizard() : KConfigWizard( new KolabPropagator )
{
- QFrame *page = createWizardPage( i18n("Kolab Server") );
+ TQFrame *page = createWizardPage( i18n("Kolab 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("Email address:"), page );
+ label = new TQLabel( i18n("Email address:"), page );
topLayout->addWidget( label, 1, 0 );
mUserEdit = new KLineEdit( page );
topLayout->addWidget( mUserEdit, 1, 1 );
- QWhatsThis::add(mUserEdit, i18n("Your email address on the Kolab Server. "
+ TQWhatsThis::add(mUserEdit, i18n("Your email address on the Kolab Server. "
"Format: <i>name@example.net</i>"));
- label = new QLabel( i18n("Real name:"), page );
+ label = new TQLabel( i18n("Real name:"), page );
topLayout->addWidget( label, 2, 0 );
mRealNameEdit = new KLineEdit( page );
topLayout->addWidget( mRealNameEdit, 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 );
topLayout->addWidget( mPasswordEdit, 3, 1 );
- mSavePasswordCheck = new QCheckBox( i18n("Save password"), page );
+ mSavePasswordCheck = new TQCheckBox( i18n("Save password"), page );
topLayout->addMultiCellWidget( mSavePasswordCheck, 4, 4, 0, 1 );
topLayout->setRowStretch( 4, 1 );
- mUseOnlineForNonGroupwareCheck = new QCheckBox( i18n("Use an online IMAP account for non-groupware folders"), page );
+ mUseOnlineForNonGroupwareCheck = new TQCheckBox( i18n("Use an online IMAP account for non-groupware folders"), page );
topLayout->addMultiCellWidget( mUseOnlineForNonGroupwareCheck, 5, 5, 0, 1 );
topLayout->setRowStretch( 5, 1 );
- QButtonGroup *bg = new QHButtonGroup(i18n("Server Version"), page );
- QWhatsThis::add( bg, i18n("Choose the version of the Kolab Server you are using.") );
- mKolab1 = new QRadioButton( i18n ( "Kolab 1" ), bg );
- mKolab2 = new QRadioButton( i18n ( "Kolab 2" ), bg );
+ TQButtonGroup *bg = new TQHButtonGroup(i18n("Server Version"), page );
+ TQWhatsThis::add( bg, i18n("Choose the version of the Kolab Server you are using.") );
+ mKolab1 = new TQRadioButton( i18n ( "Kolab 1" ), bg );
+ mKolab2 = new TQRadioButton( i18n ( "Kolab 2" ), bg );
topLayout->addMultiCellWidget( bg, 6, 6, 0, 1 );
- setInitialSize( QSize( 600, 300 ) );
+ setInitialSize( TQSize( 600, 300 ) );
}
KolabWizard::~KolabWizard()
{
}
-QString KolabWizard::validate()
+TQString KolabWizard::validate()
{
if( mServerEdit->text().isEmpty() ||
mUserEdit->text().isEmpty() ||
mRealNameEdit->text().isEmpty() ||
mPasswordEdit->text().isEmpty() )
return i18n( "Please fill in all fields." );
- return QString::null;
+ return TQString::null;
}
void KolabWizard::usrReadConfig()