diff --git a/src/Gui/propertyeditor/PropertyEditor.cpp b/src/Gui/propertyeditor/PropertyEditor.cpp index d4578324ee..22b5144a12 100644 --- a/src/Gui/propertyeditor/PropertyEditor.cpp +++ b/src/Gui/propertyeditor/PropertyEditor.cpp @@ -203,6 +203,10 @@ void PropertyEditor::setEditorMode(const QModelIndex & parent, int start, int en if (propItem && propItem->testStatus(App::Property::Hidden)) { setRowHidden (i, parent, true); } + if (propItem && propItem->isSeparator()) { + // Set group header rows to span all columns + setFirstColumnSpanned(i, parent, true); + } } } diff --git a/src/Gui/propertyeditor/PropertyItemDelegate.cpp b/src/Gui/propertyeditor/PropertyItemDelegate.cpp index 879286f8f9..cb5875ddcc 100644 --- a/src/Gui/propertyeditor/PropertyItemDelegate.cpp +++ b/src/Gui/propertyeditor/PropertyItemDelegate.cpp @@ -122,6 +122,8 @@ QWidget * PropertyItemDelegate::createEditor (QWidget * parent, const QStyleOpti if (!childItem) return 0; QWidget* editor = childItem->createEditor(parent, this, SLOT(valueChanged())); + if (editor) // Make sure the editor background is painted so the cell content doesn't show through + editor->setAutoFillBackground(true); if (editor && childItem->isReadOnly()) editor->setDisabled(true); else if (editor && this->pressed)