Fix painting artifacts.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-03-12 12:46:48 +02:00
parent a2c54fc7f3
commit 015249ad12

View file

@ -36,17 +36,13 @@
VScaledLine::VScaledLine(QGraphicsItem *parent)
: QGraphicsLineItem(parent),
m_isBoldLine(true)
{
QGraphicsItem::setCacheMode(QGraphicsItem::DeviceCoordinateCache); // Fix problem with constant redraw
}
{}
//---------------------------------------------------------------------------------------------------------------------
VScaledLine::VScaledLine(const QLineF &line, QGraphicsItem *parent)
: QGraphicsLineItem(line, parent),
m_isBoldLine(true)
{
QGraphicsItem::setCacheMode(QGraphicsItem::DeviceCoordinateCache); // Fix problem with constant redraw
}
{}
//---------------------------------------------------------------------------------------------------------------------
void VScaledLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)