diff options
Diffstat (limited to 'src/ui/widgets/KeyList.h')
-rw-r--r-- | src/ui/widgets/KeyList.h | 38 |
1 files changed, 14 insertions, 24 deletions
diff --git a/src/ui/widgets/KeyList.h b/src/ui/widgets/KeyList.h index 4216eba8..868c5b07 100644 --- a/src/ui/widgets/KeyList.h +++ b/src/ui/widgets/KeyList.h @@ -109,14 +109,6 @@ class KeyList : public QWidget { GpgKeyTableColumn custom_columns_filter = GpgKeyTableColumn::kALL); /** - * @brief Set the Double Clicked Action object - * - * @param action - */ - void SetDoubleClickedAction( - std::function<void(const GpgKey&, QWidget*)> action); - - /** * @brief Set the Column Width object * * @param row @@ -142,7 +134,7 @@ class KeyList : public QWidget { * * @return KeyIdArgsListPtr */ - auto GetChecked() -> KeyIdArgsListPtr; + auto GetChecked() -> KeyIdArgsList; /** * @brief Get the Checked Keys object @@ -157,28 +149,28 @@ class KeyList : public QWidget { * @param key_table * @return KeyIdArgsListPtr */ - static auto GetChecked(const KeyTable& key_table) -> KeyIdArgsListPtr; + static auto GetChecked(const KeyTable& key_table) -> KeyIdArgsList; /** * @brief Get the Private Checked object * * @return KeyIdArgsListPtr */ - auto GetCheckedPrivateKey() -> KeyIdArgsListPtr; + auto GetCheckedPrivateKey() -> KeyIdArgsList; /** * @brief * * @return KeyIdArgsListPtr */ - auto GetCheckedPublicKey() -> KeyIdArgsListPtr; + auto GetCheckedPublicKey() -> KeyIdArgsList; /** * @brief Get the All Private Keys object * * @return KeyIdArgsListPtr */ - auto GetAllPrivateKeys() -> KeyIdArgsListPtr; + auto GetAllPrivateKeys() -> KeyIdArgsList; /** * @brief Set the Checked object @@ -186,7 +178,7 @@ class KeyList : public QWidget { * @param keyIds * @param key_table */ - static void SetChecked(const KeyIdArgsListPtr& key_ids, + static void SetChecked(const KeyIdArgsList& key_ids, const KeyTable& key_table); /** @@ -194,7 +186,7 @@ class KeyList : public QWidget { * * @return KeyIdArgsListPtr */ - auto GetSelected() -> KeyIdArgsListPtr; + auto GetSelected() -> KeyIdArgsList; /** * @brief Get the Selected Key object @@ -204,6 +196,13 @@ class KeyList : public QWidget { auto GetSelectedKey() -> QString; /** + * @brief Get the Selected Gpg Key object + * + * @return GpgKey + */ + auto GetSelectedGpgKey() -> std::tuple<bool, GpgKey>; + + /** * @brief * * @return true @@ -239,8 +238,6 @@ class KeyList : public QWidget { */ void SignalRefreshDatabase(); - signals: - /** * @brief * @@ -314,13 +311,6 @@ class KeyList : public QWidget { /** * @brief * - * @param index - */ - void slot_double_clicked(const QModelIndex& index); - - /** - * @brief - * */ void slot_sync_with_key_server(); |