mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +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:
parent
f390ead38b
commit
44fba80068
@ -61,12 +61,13 @@ bool ColorPropItem::paint(QPainter *painter, const QStyleOptionViewItemV4 &optio
|
||||
QPen pen;
|
||||
|
||||
if (option.state & QStyle::State_Selected){
|
||||
pen.setColor(option.palette.brightText().color());
|
||||
pen.setWidth(2);
|
||||
painter->setPen(pen);
|
||||
}else
|
||||
pen.setColor(option.palette.brightText().color());
|
||||
}else {
|
||||
pen.setColor(Qt::gray);
|
||||
painter->setPen(pen);
|
||||
}
|
||||
|
||||
painter->setPen(pen);
|
||||
|
||||
painter->setBrush(propertyValue().value<QColor>());
|
||||
QRect rect = option.rect.adjusted(4,4,-4,-6);
|
||||
|
Loading…
Reference in New Issue
Block a user