summaryrefslogtreecommitdiffstats
path: root/passworddialog.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <brouwer@annejan.com>2016-10-12 20:13:30 +0200
committerAnne Jan Brouwer <brouwer@annejan.com>2016-10-12 20:13:30 +0200
commitfc47c2db66dbe8e8548d29bd4b7a0a8e669c6fb4 (patch)
treef5d7ada7d8cf0bb05ed1834e6f3e4b87b557e5c9 /passworddialog.cpp
parente025eaa24de13725891d7566c940f8b5a3d6a4a9 (diff)
Init length and selected, minor cleanup / style
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);
+}