From a5eb8bfdc1affa6d2330484800808c4d34f23103 Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Tue, 8 Feb 2022 21:58:25 -0500 Subject: Fix UI arrow artifact in Cross References and Search widgets. --- ui/expandablegroup.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ui/expandablegroup.h b/ui/expandablegroup.h index 1b28152e..63b1d70a 100644 --- a/ui/expandablegroup.h +++ b/ui/expandablegroup.h @@ -1,6 +1,7 @@ #pragma once #include "uitypes.h" +#include #include #include #include @@ -12,6 +13,7 @@ class BINARYNINJAUIAPI ExpandableGroup : public QWidget private: QToolButton* m_button; + QLabel* m_title; QParallelAnimationGroup* m_animation; QScrollArea* m_content; int m_duration = 100; @@ -20,9 +22,8 @@ class BINARYNINJAUIAPI ExpandableGroup : public QWidget void toggled(bool expanded); public: - explicit ExpandableGroup( - QLayout* contentLayout, const QString& title = "", QWidget* parent = nullptr, bool expanded = false); + explicit ExpandableGroup(QLayout* contentLayout, const QString& title = "", QWidget* parent = nullptr, bool expanded = false); void setupAnimation(QLayout* contentLayout); - void setTitle(const QString& title) { m_button->setText(title); } + void setTitle(const QString& title) { m_title->setText(title); } void toggle(bool expanded); }; -- cgit v1.3.1