mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
43657d9944
commit
c9159da43a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue