mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +00:00
Reorder collapsible group initialization
This commit is contained in:
parent
04a539b93d
commit
106542e28a
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue