mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-24 00:33:02 +03:00
ShapeItem has been fixed
This commit is contained in:
parent
69369e3b0c
commit
71256ccef6
@ -83,6 +83,7 @@ void ShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||
QPen pen(m_shapeColor);
|
||||
pen.setWidthF(m_lineWidth);
|
||||
pen.setStyle(m_penStyle);
|
||||
pen.setJoinStyle(Qt::MiterJoin);
|
||||
painter->setPen(pen);
|
||||
QBrush brush(m_shapeBrushColor,m_shapeBrushType);
|
||||
brush.setTransform(painter->worldTransform().inverted());
|
||||
@ -102,7 +103,7 @@ void ShapeItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
|
||||
painter->drawEllipse(rect());
|
||||
break;
|
||||
case Rectangle:
|
||||
if (m_cornerRadius!=0){
|
||||
if (m_cornerRadius != 0){
|
||||
painter->setRenderHint(QPainter::Antialiasing);
|
||||
painter->drawRoundedRect(rect(),m_cornerRadius,m_cornerRadius);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user