diff options
| author | Brian Potchik <brian@vector35.com> | 2022-02-08 21:58:25 -0500 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2022-02-08 21:58:25 -0500 |
| commit | a5eb8bfdc1affa6d2330484800808c4d34f23103 (patch) | |
| tree | c1c0ac5fab1aeb7480f448c483718a0d0c6f48be /ui | |
| parent | dd4b964e72718823b7d77170a2a8721d430b75a2 (diff) | |
Fix UI arrow artifact in Cross References and Search widgets.
Diffstat (limited to 'ui')
| -rw-r--r-- | ui/expandablegroup.h | 7 |
1 files 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 <QtWidgets/QLabel> #include <QtWidgets/QToolButton> #include <QtCore/QParallelAnimationGroup> #include <QtWidgets/QScrollArea> @@ -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); }; |
