diff --git a/src/Gui/Dialogs/DlgExpressionInput.cpp b/src/Gui/Dialogs/DlgExpressionInput.cpp index 3f9380597a..831b3ec454 100644 --- a/src/Gui/Dialogs/DlgExpressionInput.cpp +++ b/src/Gui/Dialogs/DlgExpressionInput.cpp @@ -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 varSets = getAllVarSets(); if (!varSets.empty() && typeOkForVarSet()) { @@ -742,6 +744,7 @@ void DlgExpressionInput::onCheckVarSets(int state) { } else { okBtn->setEnabled(true); // normal expression + adjustSize(); } } diff --git a/src/Gui/Dialogs/DlgExpressionInput.ui b/src/Gui/Dialogs/DlgExpressionInput.ui index cbd3111a36..139a99bfa8 100644 --- a/src/Gui/Dialogs/DlgExpressionInput.ui +++ b/src/Gui/Dialogs/DlgExpressionInput.ui @@ -7,7 +7,7 @@ 0 0 414 - 291 + 252 @@ -29,6 +29,9 @@ 3 + + QLayout::SizeConstraint::SetDefaultConstraint + 0 @@ -166,23 +169,10 @@ - - - - - 0 - 0 - - - - QDialogButtonBox::StandardButton::Ok|QDialogButtonBox::StandardButton::Reset - - - - Add to Variable Set + Store in VarSet... @@ -193,60 +183,56 @@ - - - - - - - Name - - - - - - - Group - - - - - - - Variable Set - - - - - - - - 0 - 0 - - - - - - - - + + + + + Variable Set + + + + + + + + + + Group + + + + + + + Name + + + + + + + + 0 + 0 + + + - - - Qt::Orientation::Vertical + + + + 0 + 0 + - - - 20 - 0 - + + QDialogButtonBox::StandardButton::Ok|QDialogButtonBox::StandardButton::Reset - + @@ -259,7 +245,6 @@ expression - buttonBox