diff options
Diffstat (limited to 'src/ui/model/GpgKeyTreeProxyModel.h')
-rw-r--r-- | src/ui/model/GpgKeyTreeProxyModel.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/ui/model/GpgKeyTreeProxyModel.h b/src/ui/model/GpgKeyTreeProxyModel.h index 5e75dd84..f41afd4f 100644 --- a/src/ui/model/GpgKeyTreeProxyModel.h +++ b/src/ui/model/GpgKeyTreeProxyModel.h @@ -40,14 +40,39 @@ class GpgKeyTreeProxyModel : public QSortFilterProxyModel { public: using KeyFilter = std::function<bool(const GpgAbstractKey *)>; + /** + * @brief Construct a new Gpg Key Tree Proxy Model object + * + * @param model + * @param display_mode + * @param filter + * @param parent + */ explicit GpgKeyTreeProxyModel(QSharedPointer<GpgKeyTreeModel> model, GpgKeyTreeDisplayMode display_mode, KeyFilter filter, QObject *parent); + /** + * @brief Set the Search Keywords object + * + * @param keywords + */ void SetSearchKeywords(const QString &keywords); + /** + * @brief + * + * @param model + */ void ResetGpgKeyTableModel(QSharedPointer<GpgKeyTreeModel> model); + /** + * @brief Set the Key Filter object + * + * @param filter + */ + void SetKeyFilter(const KeyFilter &filter); + protected: [[nodiscard]] auto filterAcceptsRow( int sourceRow, const QModelIndex &sourceParent) const -> bool override; |