diff options
| author | Josh Ferrell <josh@vector35.com> | 2025-02-05 14:23:51 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2025-02-05 14:23:51 -0500 |
| commit | 2936f622a9ab72ac16d06dfd3e00fc35e427140e (patch) | |
| tree | 74d02d0465be25f4ab7b49fc2c3171b32c176833 | |
| parent | 88a574f7bf826c4e9017a61fd8d8fac7012880d4 (diff) | |
Search item descriptions in project browser
| -rw-r--r-- | ui/projectbrowser.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/projectbrowser.h b/ui/projectbrowser.h index f9e00985..5752e915 100644 --- a/ui/projectbrowser.h +++ b/ui/projectbrowser.h @@ -139,12 +139,14 @@ class BINARYNINJAUIAPI SortFilterProjectItemModel: public QSortFilterProxyModel { bool m_acceptAllFolders = false; + ProjectRef m_project; + protected: virtual bool lessThan(const QModelIndex& sourceLeft, const QModelIndex& sourceRight) const override; virtual bool filterAcceptsRow(int sourceRow, const QModelIndex& sourceParent) const override; public: - SortFilterProjectItemModel(QObject* parent = nullptr): QSortFilterProxyModel(parent) {}; + SortFilterProjectItemModel(ProjectRef project, QObject* parent = nullptr): QSortFilterProxyModel(parent), m_project(project) {}; void setAcceptAllFolders(bool accept) { m_acceptAllFolders = accept; } bool acceptAllFolders() const { return m_acceptAllFolders; } |
