profle: port event manipulation to QtQuick

UI change: the context menu is opened when left-clicking on
the event. This is probably more compatible with mobile UI.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2024-02-24 09:07:23 +01:00
parent f0fe52d42b
commit faf18ef36b
6 changed files with 147 additions and 124 deletions

View file

@ -9,6 +9,7 @@
class ChartGraphicsSceneItem;
class ChartLineItem;
class ChartRectItem;
class DiveEventItem;
class DivePlannerPointsModel;
class HandleItem;
class PictureItem;
@ -136,6 +137,12 @@ private:
// DC related
void renameCurrentDC();
// Event related
void editEventName(const struct event &event, int idx);
void hideEvent(DiveEventItem &item);
void hideEventType(DiveEventItem &item);
void removeEvent(DiveEventItem &item);
// 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.