From f4b92b2cf193798f92c192fde495eae2231db6ed Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 6 Feb 2018 20:21:04 +0200 Subject: [PATCH] Origins should ignore line width settings. --HG-- branch : develop --- src/libs/vwidgets/vmaingraphicsscene.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/vwidgets/vmaingraphicsscene.cpp b/src/libs/vwidgets/vmaingraphicsscene.cpp index b5215d886..1f4a59a4e 100644 --- a/src/libs/vwidgets/vmaingraphicsscene.cpp +++ b/src/libs/vwidgets/vmaingraphicsscene.cpp @@ -118,7 +118,7 @@ void VMainGraphicsScene::InitOrigins() { origins.clear(); - QPen originsPen(Qt::green, qApp->Settings()->WidthHairLine(), Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); + QPen originsPen(Qt::green, (1.2 / 3.0) /*mm*/ / 25.4 * PrintDPI, Qt::SolidLine, Qt::RoundCap, Qt::RoundJoin); QBrush axisTextBrush(Qt::green); const qreal arrowAngle = 35.0; const qreal arrowLength = 12.0; @@ -160,7 +160,7 @@ void VMainGraphicsScene::InitOrigins() xOrigin->setBrush(axisTextBrush); xOrigin->setFlag(QGraphicsItem::ItemIgnoresTransformations); xOrigin->setZValue(-1.0); - xOrigin->setPos(25, -(xOrigin->boundingRect().height()/2)); + xOrigin->setPos(30, -(xOrigin->boundingRect().height()/2)); origins.append(xOrigin); } @@ -201,7 +201,7 @@ void VMainGraphicsScene::InitOrigins() yOrigin->setBrush(axisTextBrush); yOrigin->setFlag(QGraphicsItem::ItemIgnoresTransformations); yOrigin->setZValue(-1.0); - yOrigin->setPos(-(yOrigin->boundingRect().width()/2), 25); + yOrigin->setPos(-(yOrigin->boundingRect().width()/2), 30); origins.append(yOrigin); } }