summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArseniy-Movshev <dodoradio@outlook.com>2023-05-30 14:00:29 +0100
committerArseniy-Movshev <dodoradio@outlook.com>2023-05-30 14:06:20 +0100
commit3a6688f5dba3cb8b22180f53ec4e6c7f3b4f57af (patch)
tree7b906017e035e0969018d0c568f8d5ea378044e7
parent113a8495d775894ff57cb34c67c9086c3a4e64da (diff)
Make graph points round
Diffstat (limited to '')
-rw-r--r--qmlplugin/hrGraph.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qmlplugin/hrGraph.cpp b/qmlplugin/hrGraph.cpp
index d73cbcd..0ecb39c 100644
--- a/qmlplugin/hrGraph.cpp
+++ b/qmlplugin/hrGraph.cpp
@@ -63,6 +63,8 @@ void HrGraph::paint(QPainter *painter)
points[i] = QPointF(m_lineWidth + calculatedTimeSeconds*(width()-2*m_lineWidth), m_lineWidth + calculatedValue*(height()-2*m_lineWidth)); //these +2 -1 are here to make sure that the graph fits within the drawn area, as it will be clipped by qt if it doesn't.
}
QPen pen;
+ pen.setCapStyle(Qt::RoundCap);
+ pen.setJoinStyle(Qt::RoundJoin);
pen.setWidthF(m_lineWidth);
pen.setColor(m_color);
painter->setRenderHints(QPainter::Antialiasing);