#pragma once

#include "uitypes.h"
#include <QtWidgets/QLabel>
#include <QtWidgets/QToolButton>
#include <QtCore/QParallelAnimationGroup>
#include <QtWidgets/QScrollArea>
#include <QtCore/QPropertyAnimation>

class BINARYNINJAUIAPI ExpandableGroup : public QWidget
{
	Q_OBJECT

  private:
	QToolButton* m_button;
	QLabel* m_title;
	QParallelAnimationGroup* m_animation;
	QScrollArea* m_content;
	int m_duration = 100;

  private Q_SLOTS:
	void toggled(bool expanded);

  public:
	explicit ExpandableGroup(QLayout* contentLayout, const QString& title = "", QWidget* parent = nullptr, bool expanded = false);
	void setupAnimation(QLayout* contentLayout);
	void setTitle(const QString& title) { m_title->setText(title); }
	void toggle(bool expanded);
};

#pragma once

#include "uitypes.h"
#include <QtWidgets/QToolButton>
#include <QtCore/QParallelAnimationGroup>
#include <QtWidgets/QScrollArea>
#include <QtCore/QPropertyAnimation>

class BINARYNINJAUIAPI ExpandableGroup : public QWidget
{
	Q_OBJECT

  private:
	QToolButton* m_button;
	QParallelAnimationGroup* m_animation;
	QScrollArea* m_content;
	int m_duration = 100;

  private Q_SLOTS:
	void toggled(bool expanded);

  public:
	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 toggle(bool expanded);
};

--- 
+++ 
@@ -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 @@
 
   private:
 	QToolButton* m_button;
+	QLabel* m_title;
 	QParallelAnimationGroup* m_animation;
 	QScrollArea* m_content;
 	int m_duration = 100;
@@ -20,9 +22,8 @@
 	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);
 };
Fix UI arrow artifact in Cross References and Search widgets.
