summaryrefslogtreecommitdiff
path: root/ui/expandablegroup.h
diff options
context:
space:
mode:
authorXusheng <xusheng@vector35.com>2025-06-26 14:04:37 +0800
committerXusheng <xusheng@vector35.com>2025-06-26 14:04:37 +0800
commitf273d760c254176dcfc746deb3a16348fdcea87c (patch)
tree270d06e43f96f551459b785688e219e30e540c7b /ui/expandablegroup.h
parentf96714b2b96d890004e20e027aa5c8ceac7af0e2 (diff)
Fold the base structure fields in the create structure dialog by default. Fix https://github.com/Vector35/binaryninja-api/issues/4268
Diffstat (limited to 'ui/expandablegroup.h')
-rw-r--r--ui/expandablegroup.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/expandablegroup.h b/ui/expandablegroup.h
index 1591c9a7..974249fa 100644
--- a/ui/expandablegroup.h
+++ b/ui/expandablegroup.h
@@ -21,13 +21,18 @@ class BINARYNINJAUIAPI ExpandableGroup : public QWidget
QParallelAnimationGroup* m_animation;
QScrollArea* m_content;
int m_duration = 100;
+ bool m_expanded;
private Q_SLOTS:
void toggled(bool expanded);
+ Q_SIGNALS:
+ void sizeChanged();
+
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);
+ bool expanded() { return m_expanded; }
};