From 508cbc82b8695b6dd9db16df17fb398cc95094c5 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Wed, 19 Feb 2014 22:48:06 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/profile/profilewidget2.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qt-ui/profile') 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); -- cgit v1.2.3-70-g09d2