From f874a8ac57bd95c3ad39405bbb191993845d17cd Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Fri, 17 Oct 2025 23:01:46 -0400 Subject: Fix sticky header reanalyze button. --- ui/linearview.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'ui/linearview.h') diff --git a/ui/linearview.h b/ui/linearview.h index 3a490367..a33341ef 100644 --- a/ui/linearview.h +++ b/ui/linearview.h @@ -117,6 +117,10 @@ public: class LinearView; +class QHBoxLayout; +class QVBoxLayout; +class QResizeEvent; + class StickyHeader: public QWidget { RenderContext m_render; @@ -128,6 +132,11 @@ class StickyHeader: public QWidget LinearViewLine m_line; BinaryNinja::FunctionViewType m_viewType; QProgressIndicator* m_updateIndicator; + QHBoxLayout* m_mainLayout = nullptr; + QVBoxLayout* m_indicatorLayout = nullptr; + + void updateIndicatorIcon(); + void updateIndicatorPosition(); public: StickyHeader(BinaryViewRef data, LinearView* parent); @@ -138,6 +147,7 @@ public: void updateTheme(); virtual void paintEvent(QPaintEvent* event) override; + virtual void resizeEvent(QResizeEvent* event) override; }; -- cgit v1.3.1