diff options
| author | Glenn Smith <glenn@vector35.com> | 2024-05-07 16:30:42 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2024-05-07 16:35:41 -0400 |
| commit | 5523493721842129489488904017368590948466 (patch) | |
| tree | 0de2cd0a1592e94033039e44e734dcdc847c7fe9 | |
| parent | 18a1f4562c57422342a3b51652273d890f421258 (diff) | |
Type Browser: Option to have exact search matches come first
| -rw-r--r-- | ui/typebrowser.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/typebrowser.h b/ui/typebrowser.h index 18729cef..db23e22d 100644 --- a/ui/typebrowser.h +++ b/ui/typebrowser.h @@ -139,6 +139,7 @@ public: const BinaryNinja::QualifiedName& name() const { return m_name; } const TypeRef& type() const { return m_type; } void setType(const std::string& id, const BinaryNinja::QualifiedName& name, const TypeRef& type); + const std::string& sortName() const { return m_sortName; } const SourceType& sourceType() const { return m_sourceType; } std::optional<BinaryNinja::TypeContainer> typeContainer() const; @@ -327,6 +328,7 @@ class BINARYNINJAUIAPI TypeBrowserFilterModel : public QSortFilterProxyModel TypeBrowserModel* m_model; std::string m_filter; TypeBrowserFilterMode m_filterMode; + bool m_exactOnTop; protected: bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const override; |
