diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-06 14:15:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-06 14:15:01 -0600 |
commit | 1b89319fd93b88313cab40f1e9de24c067b04efb (patch) | |
tree | 80132996de993c3dcab4040864d7729842875b2d /src/enterpassworddialog.cpp | |
parent | d08a0ede1d2cb15bb14b0ff75eacf5c682b1fa0a (diff) | |
download | kvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.tar.gz kvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.zip |
Initial TQt conversion
Diffstat (limited to 'src/enterpassworddialog.cpp')
-rw-r--r-- | src/enterpassworddialog.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
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 <qdialog.h> +#include <tqdialog.h> #include <kmessagebox.h> #include <klocale.h> -#include <qlineedit.h> -#include <qlabel.h> -#include <qdialog.h> -#include <qcheckbox.h> +#include <tqlineedit.h> +#include <tqlabel.h> +#include <tqdialog.h> +#include <tqcheckbox.h> -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("<b><font size=\"+1\">"+i18n( "Enter account data:")+"</b></font>" )); + main->textLabel2->setText( TQString("<b><font size=\"+1\">"+i18n( "Enter account data:")+"</b></font>" )); } 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(); } |