mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
profile: port divecomputer menu to QtQuick
This uses QWidgets and therefore will only compile on desktop. We'll have to see how to integrate that on mobile. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
bece0a0652
commit
f0fe52d42b
5 changed files with 88 additions and 52 deletions
|
@ -367,6 +367,11 @@ bool ProfileScene::pointOnProfile(const QPointF &point) const
|
|||
return timeAxis->pointInRange(point.x()) && profileYAxis->pointInRange(point.y());
|
||||
}
|
||||
|
||||
bool ProfileScene::pointOnDiveComputerText(const QPointF &point) const
|
||||
{
|
||||
return diveComputerText->boundingRect().contains(point - diveComputerText->pos());
|
||||
}
|
||||
|
||||
static double max_gas(const plot_info &pi, double gas_pressures::*gas)
|
||||
{
|
||||
double ret = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue