aboutsummaryrefslogtreecommitdiffstats
path: root/include/ui/widgets/KeyList.h
diff options
context:
space:
mode:
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;