From c5b2609974dd754fc91151d0e8ee3d5697f72d89 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 7 Jan 2015 22:05:00 +0100 Subject: [PATCH] + select number of quantity spinbox when value is set in property editor --- src/Gui/propertyeditor/PropertyItem.cpp | 2 ++ 1 file changed, 2 insertions(+) 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());