From 78a4c923fe3fd5790e03e2c963e0a519d8c2b93b Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Fri, 21 Oct 2022 22:58:46 +0200 Subject: Show filtered/total count in search --- ui/filter.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ui/filter.h') diff --git a/ui/filter.h b/ui/filter.h index 006b92de..17466a84 100644 --- a/ui/filter.h +++ b/ui/filter.h @@ -36,12 +36,16 @@ class BINARYNINJAUIAPI FilterEdit : public QLineEdit Q_OBJECT FilterTarget* m_target; + QString m_rightText; public: FilterEdit(FilterTarget* target); + const QString& rightText() const { return m_rightText; } + void setRightText(const QString& text); protected: virtual void keyPressEvent(QKeyEvent* event) override; + virtual void paintEvent(QPaintEvent* event) override; }; /*! @@ -62,6 +66,7 @@ class BINARYNINJAUIAPI FilteredView : public QWidget void updateFonts(); void clearFilter(); void showFilter(const QString& initialText); + void showRightText(const QString& text); static bool match(const std::string& name, const std::string& filter); -- cgit v1.3.1