diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-21 16:14:22 -0300 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-06-21 16:14:22 -0300 |
commit | c9159da43a5971d163340f3c2bb1e916952b8e1a (patch) | |
tree | 645984c17aca6b489a80dab255428d5c6cacba9d /qt-ui | |
parent | 43657d99442e4b33f6df502d16e76a8b577b1381 (diff) | |
download | subsurface-c9159da43a5971d163340f3c2bb1e916952b8e1a.tar.gz |
Depth doesn't suppose to show broken numbers.
This patch makes the depth to show only integers, as
dirk asked. I'v also added a 'm' at the end, I know that
this will need to be taken from the settings but
i feel lazy today =p
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/diveplanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/diveplanner.cpp b/qt-ui/diveplanner.cpp index 65be6f608..d9179b038 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -145,7 +145,7 @@ void DivePlannerGraphics::mouseMoveEvent(QMouseEvent* event) verticalLine->setLine(mappedPos.x(), 0, mappedPos.x(), 100); horizontalLine->setLine(0, mappedPos.y(), 100, mappedPos.y()); - depthString->setText(QString::number(depthLine->valueAt(mappedPos))); + depthString->setText(QString::number( (int) depthLine->valueAt(mappedPos)) + "m" ); depthString->setPos(0, mappedPos.y()); timeString->setText(QString::number( (int) timeLine->valueAt(mappedPos)) + "min"); timeString->setPos(mappedPos.x()+1, 90); |