summaryrefslogtreecommitdiff
path: root/ui/linearview.h
diff options
context:
space:
mode:
authorAlexander Taylor <alex@vector35.com>2025-10-17 23:01:46 -0400
committerAlexander Taylor <alex@vector35.com>2025-10-18 21:35:39 -0400
commitf874a8ac57bd95c3ad39405bbb191993845d17cd (patch)
tree7dd7ec32e3b6cea05da3da0291730ee7536be0c6 /ui/linearview.h
parent717e275881f4e1e1255e733e33ad8e7c8445d377 (diff)
Fix sticky header reanalyze button.
Diffstat (limited to 'ui/linearview.h')
-rw-r--r--ui/linearview.h10
1 files changed, 10 insertions, 0 deletions
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;
};