[Sample hand widget] Create container widget before declaring it as parent (#6530)

This commit is contained in:
BruebachL 2026-01-17 18:18:13 +01:00 committed by GitHub
parent 792f077071
commit f7ffcc58fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,10 +23,9 @@ VisualDeckEditorSampleHandWidget::VisualDeckEditorSampleHandWidget(QWidget *pare
upperLayout->setContentsMargins(0, 0, 0, 0);
upperLayout->setSpacing(0);
resetAndHandSizeContainerWidget = new QWidget(this);
resetAndHandSizeLayout = new QHBoxLayout(resetAndHandSizeContainerWidget);
resetAndHandSizeLayout->setContentsMargins(11, 0, 11, 0);
resetAndHandSizeContainerWidget = new QWidget(this);
resetAndHandSizeContainerWidget->setLayout(resetAndHandSizeLayout);
resetButton = new QPushButton(this);