mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 19:47:46 -07:00
[Sample hand widget] Create container widget before declaring it as parent (#6530)
This commit is contained in:
parent
792f077071
commit
f7ffcc58fe
1 changed files with 1 additions and 2 deletions
|
|
@ -23,10 +23,9 @@ VisualDeckEditorSampleHandWidget::VisualDeckEditorSampleHandWidget(QWidget *pare
|
||||||
upperLayout->setContentsMargins(0, 0, 0, 0);
|
upperLayout->setContentsMargins(0, 0, 0, 0);
|
||||||
upperLayout->setSpacing(0);
|
upperLayout->setSpacing(0);
|
||||||
|
|
||||||
|
resetAndHandSizeContainerWidget = new QWidget(this);
|
||||||
resetAndHandSizeLayout = new QHBoxLayout(resetAndHandSizeContainerWidget);
|
resetAndHandSizeLayout = new QHBoxLayout(resetAndHandSizeContainerWidget);
|
||||||
resetAndHandSizeLayout->setContentsMargins(11, 0, 11, 0);
|
resetAndHandSizeLayout->setContentsMargins(11, 0, 11, 0);
|
||||||
|
|
||||||
resetAndHandSizeContainerWidget = new QWidget(this);
|
|
||||||
resetAndHandSizeContainerWidget->setLayout(resetAndHandSizeLayout);
|
resetAndHandSizeContainerWidget->setLayout(resetAndHandSizeLayout);
|
||||||
|
|
||||||
resetButton = new QPushButton(this);
|
resetButton = new QPushButton(this);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue