summaryrefslogtreecommitdiffstats
path: root/passworddialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'passworddialog.cpp')
-rw-r--r--passworddialog.cpp21
1 files changed, 15 insertions, 6 deletions
diff --git a/passworddialog.cpp b/passworddialog.cpp
index 3b9ba291..70619290 100644
--- a/passworddialog.cpp
+++ b/passworddialog.cpp
@@ -14,7 +14,6 @@ PasswordDialog::PasswordDialog(MainWindow *parent)
templating = false;
allFields = false;
ui->setupUi(this);
-
}
/**
@@ -40,9 +39,9 @@ void PasswordDialog::on_checkBoxShow_stateChanged(int arg1) {
*/
void PasswordDialog::on_createPasswordButton_clicked() {
ui->widget->setEnabled(false);
- ui->lineEditPassword->setText(mainWindow->generatePassword(\
- ui->spinBox_pwdLength->value(), \
- (MainWindow::clipBoardType) ui->passwordTemplateSwitch->currentIndex()));
+ ui->lineEditPassword->setText(mainWindow->generatePassword(
+ ui->spinBox_pwdLength->value(),
+ (MainWindow::clipBoardType)ui->passwordTemplateSwitch->currentIndex()));
ui->widget->setEnabled(true);
}
@@ -156,6 +155,16 @@ void PasswordDialog::templateAll(bool templateAll) { allFields = templateAll; }
*/
void PasswordDialog::useTemplate(bool useTemplate) { templating = useTemplate; }
-void PasswordDialog::setLength(int l) {ui->spinBox_pwdLength->setValue(l); }
+/**
+ * @brief PasswordDialog::setLength
+ * @param l
+ */
+void PasswordDialog::setLength(int l) { ui->spinBox_pwdLength->setValue(l); }
-void PasswordDialog::setPasswordCharTemplate(int t) {ui->passwordTemplateSwitch->setCurrentIndex(t);}
+/**
+ * @brief PasswordDialog::setPasswordCharTemplate
+ * @param t
+ */
+void PasswordDialog::setPasswordCharTemplate(int t) {
+ ui->passwordTemplateSwitch->setCurrentIndex(t);
+}