From c77f81603a0240e34b7e3e281e9c03d3880b7839 Mon Sep 17 00:00:00 2001 From: Adeel Asghar Date: Wed, 27 Sep 2023 15:14:27 +0200 Subject: [PATCH] Reduce the size of connection nodes (#11259) Changed the connection outline size from 2 to 1 --- OMEdit/OMEditLIB/Annotations/LineAnnotation.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OMEdit/OMEditLIB/Annotations/LineAnnotation.cpp b/OMEdit/OMEditLIB/Annotations/LineAnnotation.cpp index 24e8c1ff540..1f3059c3485 100644 --- a/OMEdit/OMEditLIB/Annotations/LineAnnotation.cpp +++ b/OMEdit/OMEditLIB/Annotations/LineAnnotation.cpp @@ -757,7 +757,7 @@ void LineAnnotation::paint(QPainter *painter, const QStyleOptionGraphicsItem *op painter->save(); painter->setPen(Qt::NoPen); painter->setBrush(QBrush(mLineColor)); - painter->drawEllipse(intersectionPoint, 1, 1); + painter->drawEllipse(intersectionPoint, 0.75, 0.75); painter->restore(); } } @@ -791,10 +791,10 @@ void LineAnnotation::drawAnnotation(QPainter *painter, bool scene) // draw highlight for connections if (mLineType == LineAnnotation::ConnectionType) { - qreal strokeWidth = 2.0; + qreal strokeWidth = 1.0; QColor strokeColor = Qt::white; if (isSelected()) { - strokeWidth = 3.0; + strokeWidth = 2.0; strokeColor = QColor(255, 255, 128); }