desktop: allow moving dives to arbitrary trips

The UI only allowed adding dives to trips above or below the
current dive (and even that is buggy). This is a strange
restriction, since trips are designed to be non-contiguous.

Allow adding dives to any trip using the new trip selection
dialog. The undo-command is already there, so only little
code to write.

This feature was requested on the mailing list.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-09-29 23:29:53 +02:00 committed by Dirk Hohndel
parent f5fe6839c7
commit 7b196a5ef9
3 changed files with 14 additions and 0 deletions

View file

@ -50,6 +50,7 @@ slots:
void mergeDives();
void splitDives();
void renumberDives();
void addDivesToTrip();
void shiftTimes();
void diveSelectionChanged(const QVector<QModelIndex> &indices);
void currentDiveChanged(QModelIndex index);