aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/widgets/KeyList.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-29 19:28:40 +0000
committerSaturneric <[email protected]>2021-05-29 19:28:40 +0000
commitfe67bfb777a79b25149efa3e045dc043dc144ad0 (patch)
tree4d75a10f210b86d7e116d188569bc08e4e72adb7 /include/ui/widgets/KeyList.h
parentMake eligible keys enter the signature candidate list. (diff)
downloadGpgFrontend-fe67bfb777a79b25149efa3e045dc043dc144ad0.tar.gz
GpgFrontend-fe67bfb777a79b25149efa3e045dc043dc144ad0.zip
New page and function for generating subkeys.
Define the interface and functions of the subkey management tab. When there is an item in the UID list, the first item is selected by default. Compile the API for generating sub-keys and the corresponding calling thread. Set GpgGenKeyInfo to apply to the subkey Generate a subkey for the selected key pair of the management key pair interface. Adjust the project structure and add a new classification key generation category. Double-click the item in KeyList in the key pair management interface to enter the key details page. Adjust the title of the key pair management interface. Optimize part of the code of KeyGenThread. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r--include/ui/widgets/KeyList.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ui/widgets/KeyList.h b/include/ui/widgets/KeyList.h
index 0d9b07dc..06e80910 100644
--- a/include/ui/widgets/KeyList.h
+++ b/include/ui/widgets/KeyList.h
@@ -67,6 +67,8 @@ public:
void setFilter(std::function<bool(const GpgKey&)> filter);
+ void setDoubleClickedAction(std::function<void(const GpgKey&, QWidget *)> action);
+
void setColumnWidth(int row, int size);
void addMenuAction(QAction *act);
@@ -108,12 +110,15 @@ private:
QVector<QString> excluded_key_ids;
std::function<bool(const GpgKey &)> mFilter = nullptr;
+ std::function<void(const GpgKey &, QWidget *)> mAction = nullptr;
private slots:
void uploadFinished();
+ void slotDoubleClicked(const QModelIndex &index);
+
protected: