diff --git a/src/Gui/propertyeditor/PropertyItem.cpp b/src/Gui/propertyeditor/PropertyItem.cpp index aad753ff5..90caf93a2 100644 --- a/src/Gui/propertyeditor/PropertyItem.cpp +++ b/src/Gui/propertyeditor/PropertyItem.cpp @@ -656,6 +656,7 @@ void PropertyUnitItem::setEditorData(QWidget *editor, const QVariant& data) cons Gui::QuantitySpinBox *infield = qobject_cast(editor); infield->setValue(value); + infield->selectAll(); } QVariant PropertyUnitItem::editorData(QWidget *editor) const @@ -681,6 +682,7 @@ void PropertyUnitConstraintItem::setEditorData(QWidget *editor, const QVariant& Gui::QuantitySpinBox *infield = qobject_cast(editor); infield->setValue(value); + infield->selectAll(); const App::PropertyQuantityConstraint* prop = static_cast (getFirstProperty());