Gui: Process comments DWG expression dialog

This commit ensures that the buttons stay at the end of the dialog.
This commit is contained in:
Pieter Hijma
2025-08-18 12:10:49 +02:00
parent 15bbf97b63
commit 3f6b0f5b85
2 changed files with 51 additions and 63 deletions

View File

@@ -227,6 +227,8 @@ void DlgExpressionInput::initializeVarSets()
comboBoxGroup.setInsertPolicy(QComboBox::InsertAtTop);
comboBoxGroup.setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
DlgAddPropertyVarSet::setWidgetForLabel("labelGroup", &comboBoxGroup, ui->formLayout);
setTabOrder(ui->comboBoxVarSet, &comboBoxGroup);
setTabOrder(&comboBoxGroup, ui->lineEditPropNew);
std::vector<App::VarSet*> varSets = getAllVarSets();
if (!varSets.empty() && typeOkForVarSet()) {
@@ -742,6 +744,7 @@ void DlgExpressionInput::onCheckVarSets(int state) {
}
else {
okBtn->setEnabled(true); // normal expression
adjustSize();
}
}