diff --git a/src/widget/form/setpassworddialog.cpp b/src/widget/form/setpassworddialog.cpp index 9722d9339..86bc9f8db 100644 --- a/src/widget/form/setpassworddialog.cpp +++ b/src/widget/form/setpassworddialog.cpp @@ -26,14 +26,14 @@ const double SetPasswordDialog::reasonablePasswordLength = 8.; SetPasswordDialog::SetPasswordDialog(QString body, QString extraButton, QWidget* parent) : QDialog(parent) , ui(new Ui::SetPasswordDialog) - , body(body+"\n") + , body(body + "\n\n") { ui->setupUi(this); connect(ui-> passwordlineEdit, SIGNAL(textChanged(QString)), this, SLOT(onPasswordEdit())); connect(ui->repasswordlineEdit, SIGNAL(textChanged(QString)), this, SLOT(onPasswordEdit())); - ui->body->setText(body + "\n" + tr("The passwords don't match.")); + ui->body->setText(body + "\n\n"); ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false); if (!extraButton.isEmpty()) @@ -70,7 +70,7 @@ void SetPasswordDialog::onPasswordEdit() ui->body->setText(body); } - ui->strengthBar->setValue(getPasswordStrength(pswd)); + ui->passStrengthMeter->setValue(getPasswordStrength(pswd)); } int SetPasswordDialog::getPasswordStrength(QString pass) diff --git a/src/widget/form/setpassworddialog.ui b/src/widget/form/setpassworddialog.ui index 35a7deeeb..fcba47df7 100644 --- a/src/widget/form/setpassworddialog.ui +++ b/src/widget/form/setpassworddialog.ui @@ -6,7 +6,7 @@ 0 0 - 325 + 255 160 @@ -25,20 +25,20 @@ - Qt::AlignRight + Qt::AlignLeft - Repeat password + Confirm: - Qt::AlignRight + Qt::AlignLeft - Type password + Password: @@ -56,23 +56,13 @@ - - - - Qt::AlignRight - - - Password strength - - - - - + + 0 - + Password strength: %p%