Skip to content

Commit

Permalink
Gui: fix property editor grid line color alpha channel
Browse files Browse the repository at this point in the history
  • Loading branch information
rmTizi committed Aug 20, 2021
1 parent b26ac1f commit 0144b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gui/propertyeditor/PropertyItemDelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ void PropertyItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &

QItemDelegate::paint(painter, option, index);

QColor color = static_cast<QRgb>(QApplication::style()->styleHint(QStyle::SH_Table_GridLineColor, &opt, qobject_cast<QWidget*>(parent())));
QColor color = QColor::fromRgba(static_cast<QRgb>(QApplication::style()->styleHint(QStyle::SH_Table_GridLineColor, &opt, qobject_cast<QWidget*>(parent()))));
painter->setPen(QPen(color));
if (index.column() == 1 || !(property && property->isSeparator())) {
int right = (option.direction == Qt::LeftToRight) ? option.rect.right() : option.rect.left();
Expand Down

0 comments on commit 0144b04

Please sign in to comment.