diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-11-09 20:09:59 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-11-09 20:10:49 +0900 |
commit | 5dce73f62b21b9d70cf4d7f51c8d6ec9cf8bb9f1 (patch) | |
tree | b589cffa4fe307ab679c893e9537af9958d94d78 /qt-ui/diveplanner.cpp | |
parent | 1646517d28eec7ea47a369f7be9747ff18a40520 (diff) | |
download | subsurface-5dce73f62b21b9d70cf4d7f51c8d6ec9cf8bb9f1.tar.gz |
Fix position of depth reading when entering dives
At 5% it would overlap the scale - now it's much easier to read.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/diveplanner.cpp')
-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 a14124abc..376887b43 100644 --- a/qt-ui/diveplanner.cpp +++ b/qt-ui/diveplanner.cpp @@ -548,7 +548,7 @@ void DivePlannerGraphics::mouseMoveEvent(QMouseEvent* event) horizontalLine->setPos(fromPercent(0, Qt::Horizontal), mappedPos.y()); depthString->setText(get_depth_string(depthLine->valueAt(mappedPos), true, false)); - depthString->setPos(fromPercent(5, Qt::Horizontal), mappedPos.y()); + depthString->setPos(fromPercent(1, Qt::Horizontal), mappedPos.y()); timeString->setText(QString::number(rint(timeLine->valueAt(mappedPos))) + "min"); timeString->setPos(mappedPos.x()+1, fromPercent(95, Qt::Vertical)); |