UI: Minor refactor

This commit is contained in:
Nodir Temirkhodjaev 2024-04-03 11:34:55 +03:00
parent 67513ff7e7
commit 8473da74d8
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;