diff --git a/src/Gui/propertyeditor/PropertyItemDelegate.cpp b/src/Gui/propertyeditor/PropertyItemDelegate.cpp index b5c07a45a6..73abaf8464 100644 --- a/src/Gui/propertyeditor/PropertyItemDelegate.cpp +++ b/src/Gui/propertyeditor/PropertyItemDelegate.cpp @@ -82,6 +82,9 @@ void PropertyItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem & } else if (index.column() == 1) { option.state &= ~QStyle::State_Selected; + if (property && property->isReadOnly()) { + option.state &= ~QStyle::State_Enabled; + } } option.state &= ~QStyle::State_HasFocus;