diff options
author | Saturneric <[email protected]> | 2021-12-16 18:18:38 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-16 18:18:38 +0000 |
commit | 2874ebd5e56a7da7f7e7c96da392199b296d909a (patch) | |
tree | e6b78bcbb33282e652cd47df59987fc5932725c7 /src/ui/widgets/KeyList.h | |
parent | Fixed Known Problem. (diff) | |
download | GpgFrontend-2874ebd5e56a7da7f7e7c96da392199b296d909a.tar.gz GpgFrontend-2874ebd5e56a7da7f7e7c96da392199b296d909a.zip |
Fixed & Improve.
1. Fixed Known Issues.
2. Improve UI.
Diffstat (limited to '')
-rw-r--r-- | src/ui/widgets/KeyList.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/ui/widgets/KeyList.h b/src/ui/widgets/KeyList.h index 254e66be..617bb274 100644 --- a/src/ui/widgets/KeyList.h +++ b/src/ui/widgets/KeyList.h @@ -82,14 +82,7 @@ class KeyList : public QWidget { Q_OBJECT public: - explicit KeyList( - KeyListRow::KeyType selectType = KeyListRow::SECRET_OR_PUBLIC_KEY, - KeyListColumn::InfoType infoType = KeyListColumn::ALL, - const std::function<bool(const GpgKey&)>& filter = - [](const GpgKey&) -> bool { return true; }, - QWidget* parent = nullptr); - - explicit KeyList(QWidget* parent); + explicit KeyList(bool menu, QWidget* parent = nullptr); void addListGroupTab( const QString& name, @@ -130,7 +123,6 @@ class KeyList : public QWidget { private: void init(); void importKeys(const QByteArray& inBuffer); - void updateCallbackCalled(ssize_t current_index, size_t all_index); static int key_list_id; int _m_key_list_id; @@ -142,6 +134,7 @@ class KeyList : public QWidget { QMenu* popupMenu{}; GpgFrontend::KeyLinkListPtr _buffered_keys_list; std::function<void(const GpgKey&, QWidget*)> mAction = nullptr; + bool menu_status = false; private slots: |