propertydelegate fixed

This commit is contained in:
Arin Alexander 2017-10-03 19:05:46 +03:00
parent 21356952c0
commit 881fc08024

View File

@ -74,7 +74,8 @@ void LimeReport::PropertyDelegate::paint(QPainter *painter, const QStyleOptionVi
option.rect.y()+option.rect.height() option.rect.y()+option.rect.height()
); );
painter->save(); painter->save();
painter->setPen(option.palette.color(QPalette::Dark)); QColor color = static_cast<QRgb>(QApplication::style()->styleHint(QStyle::SH_Table_GridLineColor, &option));
painter->setPen(color);
painter->drawLine(start,end); painter->drawLine(start,end);
painter->restore(); painter->restore();
} }