* @brief UsersDialog::UsersDialog basic constructor * @param dir Password directory * @param parent */
| 22 | * @param parent |
| 23 | */ |
| 24 | UsersDialog::UsersDialog(const QString &dir, QWidget *parent) |
| 25 | : QDialog(parent), ui(new Ui::UsersDialog), m_dir(dir) { |
| 26 | |
| 27 | ui->setupUi(this); |
| 28 | |
| 29 | restoreDialogState(); |
| 30 | if (!loadGpgKeys()) { |
| 31 | connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); |
| 32 | return; |
| 33 | } |
| 34 | |
| 35 | loadRecipients(); |
| 36 | populateList(); |
| 37 | |
| 38 | connectSignals(); |
| 39 | } |
| 40 | |
| 41 | void UsersDialog::connectSignals() { |
| 42 | connect(ui->buttonBox, &QDialogButtonBox::accepted, this, |
nothing calls this directly
no outgoing calls
no test coverage detected