summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ui/expandablegroup.h7
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);
};