0
0
mirror of https://github.com/fralx/LimeReport.git synced 2024-12-24 08:34:38 +03:00

fix #14 The code's operational logic does not correspond with its formatting. The statement is indented to the right, but it is always executed. It is possible that curly brackets are missing. lrcolorpropitem.cpp 69

This commit is contained in:
Arin Alexander 2016-02-20 12:21:49 +03:00
parent f390ead38b
commit 44fba80068

View File

@ -61,11 +61,12 @@ bool ColorPropItem::paint(QPainter *painter, const QStyleOptionViewItemV4 &optio
QPen pen; QPen pen;
if (option.state & QStyle::State_Selected){ if (option.state & QStyle::State_Selected){
pen.setColor(option.palette.brightText().color());
pen.setWidth(2); pen.setWidth(2);
painter->setPen(pen); pen.setColor(option.palette.brightText().color());
}else }else {
pen.setColor(Qt::gray); pen.setColor(Qt::gray);
}
painter->setPen(pen); painter->setPen(pen);
painter->setBrush(propertyValue().value<QColor>()); painter->setBrush(propertyValue().value<QColor>());