pgLab/pglab/PasswordPromptDialog.h
eelke 2230a4bd61 Lot of password related changes all over the place.
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.
2018-11-04 11:44:40 +01:00

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