From f3a440248cda4d0c850cd32e3aa127ab29e0bb3e Mon Sep 17 00:00:00 2001 From: Ryan Snyder Date: Mon, 27 May 2024 21:07:27 -0400 Subject: [PATCH] stackview: only show vars valid at current loc --- ui/stackview.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/stackview.h b/ui/stackview.h index 4837f9b38..433410dee 100644 --- a/ui/stackview.h +++ b/ui/stackview.h @@ -198,6 +198,7 @@ class BINARYNINJAUIAPI StackView : public QAbstractScrollArea, public View size_t m_lineIndex; size_t m_tokenIndex; bool m_needFirstFocus; + bool m_positionAware; //! Bind and register all stack view actions. void setupActions(); @@ -283,6 +284,9 @@ class BINARYNINJAUIAPI StackView : public QAbstractScrollArea, public View //! Set the base offset to a constant (or clear on nullopt) void setBaseOffset(FunctionRef func, std::optional offset); + //! Set whether we show only the vars relevant for the current address + void setPositionAware(bool positionAware); + //! Override the default event handler so we can have nice tooltips. bool event(QEvent* event) override;