Gui: property-editor make readonly cells look disabled

This commit is contained in:
Alfredo Monclus
2025-05-26 07:13:44 -06:00
parent 012a765614
commit cb95cb064f

View File

@@ -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;