File indexing completed on 2025-01-05 05:14:48

0001 #include "credentialdialog.h"
0002 
0003 CredentialDialog::CredentialDialog(QWidget *parent)
0004     : QDialog(parent)
0005 {
0006     setupUi(this);
0007 }
0008 
0009 QString CredentialDialog::password() const
0010 {
0011     return lineEditPassword->text();
0012 }
0013 
0014 void CredentialDialog::setPassword(const QString &password)
0015 {
0016     lineEditPassword->setText(password);
0017 }
0018 
0019 QString CredentialDialog::url() const
0020 {
0021     return mUrl;
0022 }
0023 
0024 void CredentialDialog::setUrl(const QString &url)
0025 {
0026     mUrl = url;
0027     labelCredentialsUrl->setText(tr("Credential for %1").arg(url));
0028 }
0029 
0030 QString CredentialDialog::username() const
0031 {
0032     return lineEditUsername->text();
0033 }
0034 
0035 void CredentialDialog::setUsername(const QString &username)
0036 {
0037     lineEditUsername->setText(username);
0038 }