Fix color for internal items of piece.

This commit is contained in:
Roman Telezhynskyi 2021-09-08 11:15:01 +03:00
parent 03721118a6
commit cc87f3420d

View File

@ -380,6 +380,7 @@ void VPGraphicsPiece::InitPieceLabel(const QVector<QPointF> &labelShape, const V
auto* item = new QGraphicsSimpleTextItem(this);
item->setFont(fnt);
item->setText(qsText);
item->setBrush(QBrush(color));
item->setTransform(labelMatrix);
m_labelTextItems.append(item);
@ -488,7 +489,9 @@ void VPGraphicsPiece::PaintPiece(QPainter *painter)
if (painter != nullptr)
{
painter->save();
painter->setPen(piecePath.PenStyle());
QPen pen = painter->pen();
pen.setStyle(piecePath.PenStyle());
painter->setPen(pen);
painter->drawPath(path);
painter->restore();
}