mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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>
This commit is contained in:
parent
1646517d28
commit
5dce73f62b
1 changed files with 1 additions and 1 deletions
|
@ -548,7 +548,7 @@ void DivePlannerGraphics::mouseMoveEvent(QMouseEvent* event)
|
||||||
horizontalLine->setPos(fromPercent(0, Qt::Horizontal), mappedPos.y());
|
horizontalLine->setPos(fromPercent(0, Qt::Horizontal), mappedPos.y());
|
||||||
|
|
||||||
depthString->setText(get_depth_string(depthLine->valueAt(mappedPos), true, false));
|
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->setText(QString::number(rint(timeLine->valueAt(mappedPos))) + "min");
|
||||||
timeString->setPos(mappedPos.x()+1, fromPercent(95, Qt::Vertical));
|
timeString->setPos(mappedPos.x()+1, fromPercent(95, Qt::Vertical));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue