aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/widgets/KeyList.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-28 19:21:46 +0000
committerSaturneric <[email protected]>2021-05-28 19:21:46 +0000
commita5c3aa5ceff300cad9203f3620f16920e726a762 (patch)
treebb375530f126f29746f4f4aa10985831beefec79 /include/ui/widgets/KeyList.h
parentAdjust part of the text of the UI interface of the UID operation tab. (diff)
downloadGpgFrontend-a5c3aa5ceff300cad9203f3620f16920e726a762.tar.gz
GpgFrontend-a5c3aa5ceff300cad9203f3620f16920e726a762.zip
Make eligible keys enter the signature candidate list.
Added delete UID interface and function. Added setting as the main UID function. Added the delete key signature menu and function (there is a problem). Improve the presentation of key list items Improve the page function of KeyList. Added pop-up menu for UID list operation on UIDTab interface. Signed-off-by: Saturneric <[email protected]>
Diffstat (limited to '')
-rw-r--r--include/ui/widgets/KeyList.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ui/widgets/KeyList.h b/include/ui/widgets/KeyList.h
index 4bdafc17..0d9b07dc 100644
--- a/include/ui/widgets/KeyList.h
+++ b/include/ui/widgets/KeyList.h
@@ -65,6 +65,8 @@ public:
void setExcludeKeys(std::initializer_list<QString> key_ids);
+ void setFilter(std::function<bool(const GpgKey&)> filter);
+
void setColumnWidth(int row, int size);
void addMenuAction(QAction *act);
@@ -93,6 +95,7 @@ public slots:
void uploadKeyToServer(QByteArray *keys);
private:
+
void importKeys(QByteArray inBuffer);
GpgME::GpgContext *mCtx;
@@ -104,6 +107,8 @@ private:
KeyListColumn::InfoType mInfoType;
QVector<QString> excluded_key_ids;
+ std::function<bool(const GpgKey &)> mFilter = nullptr;
+
private slots:
@@ -111,6 +116,7 @@ private slots:
protected:
+
void contextMenuEvent(QContextMenuEvent *event) override;
void dragEnterEvent(QDragEnterEvent *event) override;