diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2025-08-12 19:34:23 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2025-08-29 15:42:09 -0400 |
| commit | 0cf8ae794f97626d4560a87165b30870a313a743 (patch) | |
| tree | c77248cf663121c963433c5bd29a7b624d4a1cc7 /ui/sidebarcontainer.h | |
| parent | 5c4abf48ab4b77555a79777bc37d52c842ee149a (diff) | |
Highlight sidebar icon when the sidebar has focus
Diffstat (limited to 'ui/sidebarcontainer.h')
| -rw-r--r-- | ui/sidebarcontainer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/sidebarcontainer.h b/ui/sidebarcontainer.h index acd27761..99b42b89 100644 --- a/ui/sidebarcontainer.h +++ b/ui/sidebarcontainer.h @@ -94,6 +94,8 @@ class BINARYNINJAUIAPI SidebarWidgetContainer : public QWidget std::map<SidebarWidgetType*, SidebarFloatingWidgetState> m_savedFloatingWidgetState; + SidebarWidgetType* m_focusedType = nullptr; + SidebarStackedWidget& stackedWidgetForType(SidebarWidgetType* type); std::vector<SidebarWidgetAndHeader*> widgetsForContext() const; std::vector<SidebarContentClassifier*> contentClassifiersForContext() const; @@ -166,6 +168,9 @@ public: bool isFloating(SidebarWidgetType* type); bool isWindowed(SidebarWidgetType* type); + void focusChanged(SidebarWidgetAndHeader* widget); + SidebarWidgetType* focusedType() const { return m_focusedType; } + Q_SIGNALS: void showContents(); void hideContents(); |
