aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/profile
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-02-19 22:48:06 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-02-19 20:58:48 -0800
commit508cbc82b8695b6dd9db16df17fb398cc95094c5 (patch)
tree02c1b3c55853504eb26b7442f3b5728da900876d /qt-ui/profile
parentfd1a62568b549ea1d698d1578da8d7653063ba04 (diff)
downloadsubsurface-508cbc82b8695b6dd9db16df17fb398cc95094c5.tar.gz
Implement the rest of the heartbeat.
The only thing that was missing was the size of the vertical axis. I'm setting a small line on the bottom of the temperature axis, since both have blue color, this will not make people think one is the other. TODO: change the color to red. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile')
-rw-r--r--qt-ui/profile/profilewidget2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/profile/profilewidget2.cpp b/qt-ui/profile/profilewidget2.cpp
index b7f5e0030..ca0bdec2b 100644
--- a/qt-ui/profile/profilewidget2.cpp
+++ b/qt-ui/profile/profilewidget2.cpp
@@ -263,6 +263,8 @@ void ProfileWidget2::setupItemSizes()
itemPos.heartBeat.pos.on.setX(3);
itemPos.heartBeat.pos.on.setY(60);
+ itemPos.heartBeat.expanded.setP1(QPointF(0,0));
+ itemPos.heartBeat.expanded.setP2(QPointF(0,20));
itemPos.dcLabel.on.setX(3);
itemPos.dcLabel.on.setY(100);
@@ -547,6 +549,7 @@ void ProfileWidget2::setProfileState()
cylinderPressureAxis->setPos(itemPos.cylinder.pos.on);
temperatureAxis->setPos(itemPos.temperature.pos.on);
heartBeatAxis->setPos(itemPos.heartBeat.pos.on);
+ heartBeatAxis->setLine(itemPos.heartBeat.expanded);
meanDepth->setVisible(true);
diveComputerText->setVisible(true);