diff options
author | Saturn&Eric <[email protected]> | 2024-05-11 17:18:36 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2024-05-11 17:18:36 +0000 |
commit | f909f2c4c35b187eb165ec5545e35d54c6d92bf3 (patch) | |
tree | 428fe9e63ecae6bb93be6f20cd2b1ee9b29ffd8d /src/ui/widgets/KeyList.h | |
parent | Merge pull request #145 from jermanuts/jermanuts-wizard-links-update (diff) | |
parent | fix: remove qt5compat and redirect dll output path of modules (diff) | |
download | GpgFrontend-f909f2c4c35b187eb165ec5545e35d54c6d92bf3.tar.gz GpgFrontend-f909f2c4c35b187eb165ec5545e35d54c6d92bf3.zip |
Merge pull request #148 from saturneric/develop
Develop 2.1.3.1
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/KeyList.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/ui/widgets/KeyList.h b/src/ui/widgets/KeyList.h index 25180496..1761fb23 100644 --- a/src/ui/widgets/KeyList.h +++ b/src/ui/widgets/KeyList.h @@ -188,7 +188,7 @@ class KeyList : public QWidget { const QString& name, const QString& id, KeyListRow::KeyType selectType = KeyListRow::SECRET_OR_PUBLIC_KEY, KeyListColumn::InfoType infoType = KeyListColumn::ALL, - const KeyTable::KeyTableFilter filter = + KeyTable::KeyTableFilter filter = [](const GpgKey&, const KeyTable&) -> bool { return true; }); /** @@ -225,7 +225,7 @@ class KeyList : public QWidget { * * @return KeyIdArgsListPtr */ - KeyIdArgsListPtr GetChecked(); + auto GetChecked() -> KeyIdArgsListPtr; /** * @brief Get the Checked object @@ -233,21 +233,28 @@ class KeyList : public QWidget { * @param key_table * @return KeyIdArgsListPtr */ - static KeyIdArgsListPtr GetChecked(const KeyTable& key_table); + static auto GetChecked(const KeyTable& key_table) -> KeyIdArgsListPtr; /** * @brief Get the Private Checked object * * @return KeyIdArgsListPtr */ - KeyIdArgsListPtr GetPrivateChecked(); + auto GetCheckedPrivateKey() -> KeyIdArgsListPtr; + + /** + * @brief + * + * @return KeyIdArgsListPtr + */ + auto GetCheckedPublicKey() -> KeyIdArgsListPtr; /** * @brief Get the All Private Keys object * * @return KeyIdArgsListPtr */ - KeyIdArgsListPtr GetAllPrivateKeys(); + auto GetAllPrivateKeys() -> KeyIdArgsListPtr; /** * @brief Set the Checked object @@ -270,14 +277,14 @@ class KeyList : public QWidget { * * @return KeyIdArgsListPtr */ - KeyIdArgsListPtr GetSelected(); + auto GetSelected() -> KeyIdArgsListPtr; /** * @brief Get the Selected Key object * * @return QString */ - QString GetSelectedKey(); + auto GetSelectedKey() -> QString; /** * @brief @@ -285,7 +292,7 @@ class KeyList : public QWidget { * @return true * @return false */ - [[maybe_unused]] bool ContainsPrivateKeys(); + [[maybe_unused]] auto ContainsPrivateKeys() -> bool; signals: /** |