summaryrefslogtreecommitdiff
path: root/qmlplugin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--qmlplugin/hrGraph.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmlplugin/hrGraph.cpp b/qmlplugin/hrGraph.cpp
index 625300e..5c38026 100644
--- a/qmlplugin/hrGraph.cpp
+++ b/qmlplugin/hrGraph.cpp
@@ -59,7 +59,7 @@ void HrGraph::paint(QPainter *painter)
for(int i = 0; i < j; i++) {
calculatedTimeSeconds = (m_filedata.at(i).time - minTime)/timeDelta;
calculatedValue = 1 - (m_filedata.at(i).value - minHrValue)/valueDelta;
- points[i] = QPointF(m_lineWidth + calculatedTimeSeconds*(height()-2*m_lineWidth), m_lineWidth + calculatedValue*(width()-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.
+ 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.setWidthF(m_lineWidth);