diff options
| author | Jordan Wiens <jordan@psifertex.com> | 2025-07-12 16:13:18 -0400 |
|---|---|---|
| committer | Jordan Wiens <jordan@psifertex.com> | 2025-07-12 16:13:18 -0400 |
| commit | aa9ab3be6d50b13157472ab10f9f82f3e74e16c1 (patch) | |
| tree | 102bf0e8bc99f44fd5c64c3c26cf6c70c21f7bd8 | |
| parent | 5d92c427fdb16e0b167b88eb53f61693cd67c535 (diff) | |
enhances expandable group to support expandable content and not
| -rw-r--r-- | ui/createstructdialog.h | 1 | ||||
| -rw-r--r-- | 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 <QtWidgets/QLabel> #include <QtWidgets/QToolButton> #include <QtCore/QParallelAnimationGroup> -#include <QtWidgets/QScrollArea> #include <QtCore/QPropertyAnimation> /*! @@ -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); }; |
