Skip to content

Commit

Permalink
Merge pull request FreeCAD#166 from rmTizi/LinkDaily
Browse files Browse the repository at this point in the history
Gui: Fixes property editor grid line color alpha channel being lost after cast.
  • Loading branch information
realthunder authored Aug 21, 2021
2 parents fa3e0e6 + 0144b04 commit 0792f13
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 0792f13

Please sign in to comment.