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

@ -92,6 +92,7 @@ private:
ChartItemPtr<ChartGraphicsSceneItem> profileItem;
std::unique_ptr<ProfileAnimation> animation;
ChartItemPtr<ChartLineItem> mouseFollowerHorizontal, mouseFollowerVertical;
dive *mutable_dive() const; // for functions manipulating the dive
void plotAreaChanged(const QSizeF &size) override;
void resetPointers() override;
@ -132,6 +133,9 @@ private:
void pointsRemoved(const QModelIndex &, int start, int end);
void pointsMoved(const QModelIndex &, int start, int end, const QModelIndex &destination, int row);
// DC related
void renameCurrentDC();
// The list of pictures in this plot. The pictures are sorted by offset in seconds.
// For the same offset, sort by filename.
// Pictures that are outside of the dive time are not shown.