Password is no longer saved with the connection list. Password is not entered along with other connection credentials. Password is now asked for when required. Still working on saving the password and auto retrieving it from the password manager.
32 lines
617 B
C++
32 lines
617 B
C++
#ifndef PASSWORDPROMPTDIALOG_H
|
|
#define PASSWORDPROMPTDIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
class QCheckBox;
|
|
class QLabel;
|
|
class QLineEdit;
|
|
|
|
class PasswordPromptDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit PasswordPromptDialog(QWidget *parent = nullptr);
|
|
|
|
void setConnectionDescription(const QString &description);
|
|
|
|
QString password() const;
|
|
private:
|
|
QLabel *m_connectionLabel = nullptr;
|
|
QLabel *m_passwordLabel = nullptr;
|
|
QLineEdit *m_passwordInput = nullptr;
|
|
QCheckBox *m_saveCheck = nullptr;
|
|
|
|
void retranslateUi();
|
|
|
|
private slots:
|
|
// void accept();
|
|
// void reject();
|
|
};
|
|
|
|
#endif // PASSWORDPROMPTDIALOG_H
|