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)
|
||||
{
|
||||
QPen lPen = pen();
|
||||
|
||||
const qreal width = ScaleWidth(basicWidth, SceneScale(scene()));
|
||||
qRound(width) < 1 ? lPen.setWidthF(width) : lPen.setWidth(qRound(width));
|
||||
lPen.setWidthF(ScaleWidth(basicWidth, SceneScale(scene())));
|
||||
setPen(lPen);
|
||||
|
||||
PaintWithFixItemHighlightSelected<QGraphicsLineItem>(this, painter, option, widget);
|
||||
|
|
Loading…
Reference in New Issue
Block a user