Backed out changeset: 6d0635c37029

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2017-12-17 16:34:56 +02:00
parent c853b67f63
commit 012c799614

View File

@ -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);