From aa9ab3be6d50b13157472ab10f9f82f3e74e16c1 Mon Sep 17 00:00:00 2001 From: Jordan Wiens Date: Sat, 12 Jul 2025 16:13:18 -0400 Subject: enhances expandable group to support expandable content and not --- ui/createstructdialog.h | 1 - ui/expandablegroup.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui/createstructdialog.h b/ui/createstructdialog.h index 8718325f..eecaa914 100644 --- a/ui/createstructdialog.h +++ b/ui/createstructdialog.h @@ -51,7 +51,6 @@ class BINARYNINJAUIAPI BaseStructuresTableWidget : public QTableWidget public: BaseStructuresTableWidget(); - virtual QSize sizeHint() const override; protected: virtual void contextMenuEvent(QContextMenuEvent* event) override; diff --git a/ui/expandablegroup.h b/ui/expandablegroup.h index 974249fa..770e3894 100644 --- a/ui/expandablegroup.h +++ b/ui/expandablegroup.h @@ -4,7 +4,6 @@ #include #include #include -#include #include /*! @@ -19,7 +18,7 @@ class BINARYNINJAUIAPI ExpandableGroup : public QWidget QToolButton* m_button; QLabel* m_title; QParallelAnimationGroup* m_animation; - QScrollArea* m_content; + QWidget* m_content; int m_duration = 100; bool m_expanded; @@ -35,4 +34,5 @@ class BINARYNINJAUIAPI ExpandableGroup : public QWidget void setTitle(const QString& title) { m_title->setText(title); } void toggle(bool expanded); bool expanded() { return m_expanded; } + void setContentExpandable(bool expandable); }; -- cgit v1.3.1