summaryrefslogtreecommitdiffstats
path: root/application/dialogs/EditAccountDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'application/dialogs/EditAccountDialog.cpp')
-rw-r--r--application/dialogs/EditAccountDialog.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/application/dialogs/EditAccountDialog.cpp b/application/dialogs/EditAccountDialog.cpp
index b78cebee..7c2ff981 100644
--- a/application/dialogs/EditAccountDialog.cpp
+++ b/application/dialogs/EditAccountDialog.cpp
@@ -26,8 +26,8 @@ EditAccountDialog::EditAccountDialog(const QString &text, QWidget *parent, int f
ui->label->setText(text);
ui->label->setVisible(!text.isEmpty());
- ui->userTextBox->setVisible(flags & UsernameField);
- ui->passTextBox->setVisible(flags & PasswordField);
+ ui->userTextBox->setEnabled(flags & UsernameField);
+ ui->passTextBox->setEnabled(flags & PasswordField);
}
EditAccountDialog::~EditAccountDialog()
@@ -40,11 +40,21 @@ void EditAccountDialog::on_label_linkActivated(const QString &link)
QDesktopServices::openUrl(QUrl(link));
}
+void EditAccountDialog::setUsername(const QString & user) const
+{
+ ui->userTextBox->setText(user);
+}
+
QString EditAccountDialog::username() const
{
return ui->userTextBox->text();
}
+void EditAccountDialog::setPassword(const QString & pass) const
+{
+ ui->passTextBox->setText(pass);
+}
+
QString EditAccountDialog::password() const
{
return ui->passTextBox->text();