summaryrefslogtreecommitdiff
path: root/ui/linearview.h
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2023-01-16 17:12:30 -0500
committerJosh Ferrell <josh@vector35.com>2023-01-16 17:12:30 -0500
commitac44c4740082a1a9f1f55ad0bb9dc4f729b0e816 (patch)
tree337d78d15746df29bbcf91ffbe97672023329f0e /ui/linearview.h
parent174fc0e1529981baf39bf6f5f0a92f25be39215f (diff)
Make parameter order more consistent across linear view, do not clobber QWidget::update
Diffstat (limited to 'ui/linearview.h')
-rw-r--r--ui/linearview.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ui/linearview.h b/ui/linearview.h
index bffc21fb..9b93c546 100644
--- a/ui/linearview.h
+++ b/ui/linearview.h
@@ -116,7 +116,6 @@ class LinearView;
class StickyHeader: public QWidget
{
RenderContext m_render;
- LinearView* m_parent;
BinaryViewRef m_data;
uint64_t m_gutterWidth;
@@ -124,9 +123,9 @@ class StickyHeader: public QWidget
LinearViewLine m_line;
public:
- StickyHeader(LinearView* parent, BinaryViewRef data);
+ StickyHeader(BinaryViewRef data, LinearView* parent);
- void update(const LinearViewLine& line);
+ void updateLine(const LinearViewLine& line);
void updateFonts();
virtual void paintEvent(QPaintEvent* event) override;