mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-10-02 13:21:33 +02:00
Fix painting artifacts.
--HG-- branch : develop
This commit is contained in:
parent
a2c54fc7f3
commit
015249ad12
|
@ -36,17 +36,13 @@
|
||||||
VScaledLine::VScaledLine(QGraphicsItem *parent)
|
VScaledLine::VScaledLine(QGraphicsItem *parent)
|
||||||
: QGraphicsLineItem(parent),
|
: QGraphicsLineItem(parent),
|
||||||
m_isBoldLine(true)
|
m_isBoldLine(true)
|
||||||
{
|
{}
|
||||||
QGraphicsItem::setCacheMode(QGraphicsItem::DeviceCoordinateCache); // Fix problem with constant redraw
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
VScaledLine::VScaledLine(const QLineF &line, QGraphicsItem *parent)
|
VScaledLine::VScaledLine(const QLineF &line, QGraphicsItem *parent)
|
||||||
: QGraphicsLineItem(line, parent),
|
: QGraphicsLineItem(line, parent),
|
||||||
m_isBoldLine(true)
|
m_isBoldLine(true)
|
||||||
{
|
{}
|
||||||
QGraphicsItem::setCacheMode(QGraphicsItem::DeviceCoordinateCache); // Fix problem with constant redraw
|
|
||||||
}
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------------------------------------------
|
||||||
void VScaledLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
void VScaledLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||||
|
|
Loading…
Reference in a new issue