summaryrefslogtreecommitdiffstats
path: root/kresources/scalix/scalixadmin/passwordpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/scalix/scalixadmin/passwordpage.cpp')
-rw-r--r--kresources/scalix/scalixadmin/passwordpage.cpp48
1 files changed, 24 insertions, 24 deletions
diff --git a/kresources/scalix/scalixadmin/passwordpage.cpp b/kresources/scalix/scalixadmin/passwordpage.cpp
index 7d4182348..facc29170 100644
--- a/kresources/scalix/scalixadmin/passwordpage.cpp
+++ b/kresources/scalix/scalixadmin/passwordpage.cpp
@@ -18,11 +18,11 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qapplication.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qlineedit.h>
-#include <qpushbutton.h>
+#include <tqapplication.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqlineedit.h>
+#include <tqpushbutton.h>
#include <kconfig.h>
#include <klocale.h>
@@ -35,36 +35,36 @@
#include "passwordpage.h"
-PasswordPage::PasswordPage( QWidget *parent )
- : QWidget( parent ), mJob( 0 )
+PasswordPage::PasswordPage( TQWidget *parent )
+ : TQWidget( parent ), mJob( 0 )
{
- QGridLayout *layout = new QGridLayout( this, 2, 3, 11, 6 );
+ TQGridLayout *layout = new TQGridLayout( this, 2, 3, 11, 6 );
- QLabel *label = new QLabel( i18n( "New password:" ), this );
+ TQLabel *label = new TQLabel( i18n( "New password:" ), this );
layout->addWidget( label, 0, 0 );
- mPassword = new QLineEdit( this );
- mPassword->setEchoMode( QLineEdit::Password );
+ mPassword = new TQLineEdit( this );
+ mPassword->setEchoMode( TQLineEdit::Password );
label->setBuddy( mPassword );
layout->addWidget( mPassword, 0, 1 );
- label = new QLabel( i18n( "Retype new password:" ), this );
+ label = new TQLabel( i18n( "Retype new password:" ), this );
layout->addWidget( label, 1, 0 );
- mPasswordRetype = new QLineEdit( this );
- mPasswordRetype->setEchoMode( QLineEdit::Password );
+ mPasswordRetype = new TQLineEdit( this );
+ mPasswordRetype->setEchoMode( TQLineEdit::Password );
label->setBuddy( mPasswordRetype );
layout->addWidget( mPasswordRetype, 1, 1 );
- mButton = new QPushButton( i18n( "Change" ), this );
+ mButton = new TQPushButton( i18n( "Change" ), this );
mButton->setEnabled( false );
layout->addWidget( mButton, 2, 1 );
layout->setRowSpacing( 3, 1 );
- connect( mPassword, SIGNAL( textChanged( const QString& ) ), this, SLOT( textChanged() ) );
- connect( mPasswordRetype, SIGNAL( textChanged( const QString& ) ), this, SLOT( textChanged() ) );
- connect( mButton, SIGNAL( clicked() ), this, SLOT( buttonClicked() ) );
+ connect( mPassword, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( textChanged() ) );
+ connect( mPasswordRetype, TQT_SIGNAL( textChanged( const TQString& ) ), this, TQT_SLOT( textChanged() ) );
+ connect( mButton, TQT_SIGNAL( clicked() ), this, TQT_SLOT( buttonClicked() ) );
}
void PasswordPage::buttonClicked()
@@ -77,7 +77,7 @@ void PasswordPage::buttonClicked()
mJob = Scalix::setPassword( Settings::self()->globalSlave(), Settings::self()->accountUrl(),
Settings::self()->accountPassword(), mPassword->text() );
- connect( mJob, SIGNAL( result( KIO::Job* ) ), this, SLOT( finished( KIO::Job* ) ) );
+ connect( mJob, TQT_SIGNAL( result( KIO::Job* ) ), this, TQT_SLOT( finished( KIO::Job* ) ) );
updateState( true );
} else {
@@ -120,7 +120,7 @@ void PasswordPage::finished( KIO::Job* job )
// Update configuration files to the new password as well
- const QString newPassword = mPassword->text();
+ const TQString newPassword = mPassword->text();
{ // ScalixAdmin config
KConfig config( "scalixadminrc" );
@@ -138,8 +138,8 @@ void PasswordPage::finished( KIO::Job* job )
KConfig config( "kmailrc" );
// Try to find account group for Scalix
- QString scalixAccount;
- const QStringList groupList = config.groupList();
+ TQString scalixAccount;
+ const TQStringList groupList = config.groupList();
for ( uint i = 0; i < groupList.count(); ++i ) {
if ( groupList[ i ].startsWith( "Account " ) ) {
KConfigGroup group( &config, groupList[ i ] );
@@ -173,13 +173,13 @@ void PasswordPage::finished( KIO::Job* job )
if ( !wallet->hasFolder( "kmail" ) )
wallet->createFolder( "kmail" );
wallet->setFolder( "kmail" );
- wallet->writePassword( "account-" + QString::number( accountId ), newPassword );
+ wallet->writePassword( "account-" + TQString::number( accountId ), newPassword );
}
} else {
group.writeEntry( "pass", KStringHandler::obscure( newPassword ) );
}
- KConfigGroup fileGroup( &config, QString( "Folder-%1" ).arg( group.readNumEntry( "Folder" ) ) );
+ KConfigGroup fileGroup( &config, TQString( "Folder-%1" ).arg( group.readNumEntry( "Folder" ) ) );
fileGroup.writeEntry( "pass", KStringHandler::obscure( newPassword ) );
}
}