Reorder collapsible group initialization

This commit is contained in:
Dan Paulat 2023-06-27 22:53:13 -05:00
parent 04a539b93d
commit 106542e28a

View file

@ -46,14 +46,14 @@ CollapsibleGroup::~CollapsibleGroup()
void CollapsibleGroupImpl::Initialize() void CollapsibleGroupImpl::Initialize()
{ {
self_->Expand();
QObject::connect( QObject::connect(
self_->ui->titleButton, self_->ui->titleButton,
&QAbstractButton::toggled, &QAbstractButton::toggled,
self_, self_,
[this](bool checked) { SetExpanded(checked); }, [this](bool checked) { SetExpanded(checked); },
Qt::DirectConnection); Qt::DirectConnection);
self_->Expand();
} }
void CollapsibleGroup::SetContentsLayout(QLayout* layout) void CollapsibleGroup::SetContentsLayout(QLayout* layout)