diff options
| author | Glenn Smith <glenn@vector35.com> | 2022-10-21 22:58:46 +0200 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-11-10 16:19:13 -0500 |
| commit | 78a4c923fe3fd5790e03e2c963e0a519d8c2b93b (patch) | |
| tree | 3641ec3679eeb65b9ea171b1b1479b67fb3040c3 /ui/filter.h | |
| parent | 4fd944de0e28e2d66cb5792c4f7a80cfad387b56 (diff) | |
Show filtered/total count in search
Diffstat (limited to 'ui/filter.h')
| -rw-r--r-- | ui/filter.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); |
