From 0144b0484a73b8b74aff03fc4aa23c751479edfd Mon Sep 17 00:00:00 2001 From: Rogelio Martinez Date: Fri, 20 Aug 2021 21:31:30 +0200 Subject: [PATCH] Gui: fix property editor grid line color alpha channel --- src/Gui/propertyeditor/PropertyItemDelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/propertyeditor/PropertyItemDelegate.cpp b/src/Gui/propertyeditor/PropertyItemDelegate.cpp index 4e7436fa2f4e..b211fbfa4fa9 100644 --- a/src/Gui/propertyeditor/PropertyItemDelegate.cpp +++ b/src/Gui/propertyeditor/PropertyItemDelegate.cpp @@ -116,7 +116,7 @@ void PropertyItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem & QItemDelegate::paint(painter, option, index); - QColor color = static_cast(QApplication::style()->styleHint(QStyle::SH_Table_GridLineColor, &opt, qobject_cast(parent()))); + QColor color = QColor::fromRgba(static_cast(QApplication::style()->styleHint(QStyle::SH_Table_GridLineColor, &opt, qobject_cast(parent())))); painter->setPen(QPen(color)); if (index.column() == 1 || !(property && property->isSeparator())) { int right = (option.direction == Qt::LeftToRight) ? option.rect.right() : option.rect.left();