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 New Issue
Block a user