diff --git a/src/ui/form/controls/spincombo.cpp b/src/ui/form/controls/spincombo.cpp index 1f7d5171..04da2916 100644 --- a/src/ui/form/controls/spincombo.cpp +++ b/src/ui/form/controls/spincombo.cpp @@ -46,7 +46,7 @@ void SpinCombo::setupUi() setupSpin(); setupCombo(); - auto layout = ControlUtil::createRowLayout(m_spinBox, m_comboBox, 0); + auto layout = ControlUtil::createRowLayout(m_spinBox, m_comboBox, /*stretch1=*/0); this->setLayout(layout); } diff --git a/src/ui/form/prog/programeditdialog.cpp b/src/ui/form/prog/programeditdialog.cpp index 8f35e0ce..8e351813 100644 --- a/src/ui/form/prog/programeditdialog.cpp +++ b/src/ui/form/prog/programeditdialog.cpp @@ -617,7 +617,7 @@ QLayout *ProgramEditDialog::setupRuleLayout() } }); - auto layout = ControlUtil::createHLayoutByWidgets({ m_editRuleName, m_btSelectRule }); + auto layout = ControlUtil::createRowLayout(m_editRuleName, m_btSelectRule); layout->setSpacing(0); return layout;