From 5523493721842129489488904017368590948466 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 7 May 2024 16:30:42 -0400 Subject: Type Browser: Option to have exact search matches come first --- ui/typebrowser.h | 2 ++ 1 file changed, 2 insertions(+) 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 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; -- cgit v1.3.1