mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: fix crosshairs
In planner and edit mode, the cursor position is indicated using crosshairs. They broke when changing to absolute scaling. To fix them, remember the plot-area in the profile scene and draw the crosshairs only inside this area (not on top of axes). However, limit the position of the horizontal line to the actual profile (dont paint inside the partial pressure, etc graphs). The vertical line is painted above those graphs, so that a timestamp can be related to partial pressure, tissue loading, etc. Also, set the z-value of the crosshairs. It was painted inconsistently above some and below other chart features. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
26c6344e70
commit
352cdcc863
3 changed files with 13 additions and 13 deletions
|
@ -316,7 +316,8 @@ void ProfileScene::updateAxes(bool diveHasHeartBeat, bool simplified)
|
|||
}
|
||||
|
||||
bottomBorder -= timeAxis->height();
|
||||
timeAxis->setPosition(QRectF(leftBorder, topBorder, width, bottomBorder - topBorder));
|
||||
profileRegion = QRectF(leftBorder, topBorder, width, bottomBorder - topBorder);
|
||||
timeAxis->setPosition(profileRegion);
|
||||
|
||||
if (prefs.tankbar) {
|
||||
bottomBorder -= tankItem->height();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue