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:
Berthold Stoeger 2024-02-09 14:24:29 +01:00
parent bece0a0652
commit f0fe52d42b
5 changed files with 88 additions and 52 deletions

View file

@ -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;