diff options
author | tezeb <tezeb+github@outoftheblue.pl> | 2016-12-30 22:11:49 +0100 |
---|---|---|
committer | tezeb <tezeb+github@outoftheblue.pl> | 2016-12-30 22:11:49 +0100 |
commit | 18e1c2c1a3ead4ffee09c90be49dea43d1ec1040 (patch) | |
tree | 08ca59f16189babf9710fae681a3d78cdac46b56 /src/passworddialog.cpp | |
parent | e0964b9c170754ce92d391ac1ed43da88f3cedbf (diff) |
direct connection of password edit dialog with password reading
Diffstat (limited to 'src/passworddialog.cpp')
-rw-r--r-- | src/passworddialog.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/passworddialog.cpp b/src/passworddialog.cpp index 08302e46..aad8ac8f 100644 --- a/src/passworddialog.cpp +++ b/src/passworddialog.cpp @@ -45,7 +45,7 @@ void PasswordDialog::on_checkBoxShow_stateChanged(int arg1) { */ void PasswordDialog::on_createPasswordButton_clicked() { ui->widget->setEnabled(false); - QString newPass = QtPassSettings::getPass()->Generate( + QString newPass = QtPassSettings::getPass()->Generate_b( ui->spinBox_pwdLength->value(), m_passConfig.Characters[(passwordConfiguration::characterSet) ui->passwordTemplateSwitch->currentIndex()]); @@ -189,3 +189,8 @@ void PasswordDialog::usePwgen(bool usePwgen) { ui->passwordTemplateSwitch->setDisabled(usePwgen); ui->label_characterset->setDisabled(usePwgen); } + +void PasswordDialog::setPass(const QString &output) { + setPassword(output); + // TODO(bezet): enable ui +} |