From 56b969442718cc55531d42b0401ae6db1b325dff Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 14 Jul 2013 16:19:37 +0200 Subject: [PATCH] 0001076: Placement Position Entry can be improved --- src/Gui/propertyeditor/PropertyItemDelegate.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Gui/propertyeditor/PropertyItemDelegate.cpp b/src/Gui/propertyeditor/PropertyItemDelegate.cpp index 2b79de29c..2aa58bffb 100644 --- a/src/Gui/propertyeditor/PropertyItemDelegate.cpp +++ b/src/Gui/propertyeditor/PropertyItemDelegate.cpp @@ -101,6 +101,8 @@ QWidget * PropertyItemDelegate::createEditor (QWidget * parent, const QStyleOpti QWidget* editor = childItem->createEditor(parent, this, SLOT(valueChanged())); if (editor && childItem->isReadOnly()) editor->setDisabled(true); + else if (editor) + editor->setFocus(); return editor; }