Backed out changeset: 6d0635c37029
--HG-- branch : develop
This commit is contained in:
parent
c853b67f63
commit
012c799614
|
@ -47,9 +47,7 @@ VScaledLine::VScaledLine(const QLineF &line, QGraphicsItem *parent)
|
||||||
void VScaledLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
void VScaledLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
|
||||||
{
|
{
|
||||||
QPen lPen = pen();
|
QPen lPen = pen();
|
||||||
|
lPen.setWidthF(ScaleWidth(basicWidth, SceneScale(scene())));
|
||||||
const qreal width = ScaleWidth(basicWidth, SceneScale(scene()));
|
|
||||||
qRound(width) < 1 ? lPen.setWidthF(width) : lPen.setWidth(qRound(width));
|
|
||||||
setPen(lPen);
|
setPen(lPen);
|
||||||
|
|
||||||
PaintWithFixItemHighlightSelected<QGraphicsLineItem>(this, painter, option, widget);
|
PaintWithFixItemHighlightSelected<QGraphicsLineItem>(this, painter, option, widget);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user