From 1b89319fd93b88313cab40f1e9de24c067b04efb Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 6 Dec 2011 14:15:01 -0600 Subject: Initial TQt conversion --- src/enterpassworddialog.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/enterpassworddialog.cpp') diff --git a/src/enterpassworddialog.cpp b/src/enterpassworddialog.cpp index 59f74a9..0946d2b 100644 --- a/src/enterpassworddialog.cpp +++ b/src/enterpassworddialog.cpp @@ -19,15 +19,15 @@ ***************************************************************************/ #include "enterpassworddialog.h" -#include +#include #include #include -#include -#include -#include -#include +#include +#include +#include +#include -EnterUsernamePasswordDialog::EnterUsernamePasswordDialog(QWidget *parent, const QString& caption,bool askForGrouppassword, bool askForUsername) : KDialogBase( parent, "Enter_account_data", true, caption, +EnterUsernamePasswordDialog::EnterUsernamePasswordDialog(TQWidget *parent, const TQString& caption,bool askForGrouppassword, bool askForUsername) : KDialogBase( parent, "Enter_account_data", true, caption, KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true ) { @@ -36,7 +36,7 @@ EnterUsernamePasswordDialog::EnterUsernamePasswordDialog(QWidget *parent, const main = new EnterUsernamePasswordDialogBase(this); setMainWidget(main); - main->setMinimumSize(main->sizeHint()); + main->setMinimumSize(main->tqsizeHint()); if (!askForGrouppassword) { @@ -55,7 +55,7 @@ EnterUsernamePasswordDialog::EnterUsernamePasswordDialog(QWidget *parent, const if (!askForUsername) main->SaveUsernameCheckBox->hide(); - main->textLabel2->setText( QString(""+i18n( "Enter account data:")+"" )); + main->textLabel2->setText( TQString(""+i18n( "Enter account data:")+"" )); } EnterUsernamePasswordDialog::~ EnterUsernamePasswordDialog() @@ -68,7 +68,7 @@ void EnterUsernamePasswordDialog::accept() { bool ok=true; - QString msg=""; + TQString msg=""; if (askForGrouppassword){ if( main->PSKLineEdit->text().isEmpty()) msg+="\n- "+i18n("PSK"); @@ -83,12 +83,12 @@ void EnterUsernamePasswordDialog::accept() } if (!msg.isEmpty()) { - KMessageBox::sorry( 0, i18n( "All fields must be filled in. Please check:\n%1").arg(msg)); + KMessageBox::sorry( 0, i18n( "All fields must be filled in. Please check:\n%1").tqarg(msg)); ok=false; } if (ok) - QDialog::accept(); + TQDialog::accept(); } -- cgit v1.2.1