aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/SignersPicker.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-06-28 21:05:25 +0000
committersaturneric <[email protected]>2024-06-28 21:05:25 +0000
commitd0333031c1f593998a501eff866f091ff2f036be (patch)
tree707a597c25b488955572601e87ba9e379df0a6ed /src/ui/dialog/SignersPicker.cpp
parentfeat: rewrite key list structure and logic (diff)
downloadGpgFrontend-d0333031c1f593998a501eff866f091ff2f036be.tar.gz
GpgFrontend-d0333031c1f593998a501eff866f091ff2f036be.zip
feat: user can select shown columns at key table
Diffstat (limited to 'src/ui/dialog/SignersPicker.cpp')
-rw-r--r--src/ui/dialog/SignersPicker.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ui/dialog/SignersPicker.cpp b/src/ui/dialog/SignersPicker.cpp
index 5ab33425..c6bbbbe7 100644
--- a/src/ui/dialog/SignersPicker.cpp
+++ b/src/ui/dialog/SignersPicker.cpp
@@ -44,23 +44,23 @@ SignersPicker::SignersPicker(QWidget* parent)
connect(cancel_button, &QPushButton::clicked, this, &QDialog::reject);
/*Setup KeyList*/
- key_list_ = new KeyList(0U, this);
- key_list_->AddListGroupTab(
- tr("Signers"), "signers", GpgKeyTableDisplayMode::kPrivateKey,
- GpgKeyTableColumn::kName | GpgKeyTableColumn::kEmailAddress |
- GpgKeyTableColumn::kUsage,
- [](const GpgKey& key) -> bool {
- return key.IsHasActualSigningCapability();
- });
+ key_list_ =
+ new KeyList(KeyMenuAbility::SEARCH_BAR,
+ GpgKeyTableColumn::kNAME | GpgKeyTableColumn::kEMAIL_ADDRESS |
+ GpgKeyTableColumn::kKEY_ID | GpgKeyTableColumn::kUSAGE,
+ this);
+ key_list_->AddListGroupTab(tr("Signers"), "signers",
+ GpgKeyTableDisplayMode::kPRIVATE_KEY,
+ [](const GpgKey& key) -> bool {
+ return key.IsHasActualSigningCapability();
+ });
key_list_->SlotRefresh();
auto* vbox2 = new QVBoxLayout();
vbox2->addWidget(new QLabel(tr("Select Signer(s)") + ": "));
vbox2->addWidget(key_list_);
vbox2->addWidget(new QLabel(
- QString(
- tr("Please select one or more private keys you use for signing.")) +
- "\n" +
+ tr("Please select one or more private keys you use for signing.") + "\n" +
tr("If no key is selected, the default key will be used for signing.")));
vbox2->addWidget(confirm_button);
vbox2->addWidget(cancel_button);