summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/divelistview.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-09-29 23:29:53 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-03 10:01:13 -0700
commit7b196a5ef90ee96435ea762c7045ef47a6811a28 (patch)
treee23e71d1d83f47f1c9d66a2f79b179c4d34edd50 /desktop-widgets/divelistview.h
parentf5fe6839c7672f775e35068f46fbb2d2e41b8bf5 (diff)
downloadsubsurface-7b196a5ef90ee96435ea762c7045ef47a6811a28.tar.gz
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>
Diffstat (limited to 'desktop-widgets/divelistview.h')
-rw-r--r--desktop-widgets/divelistview.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/desktop-widgets/divelistview.h b/desktop-widgets/divelistview.h
index f1a5eba8d..17cff4b02 100644
--- a/desktop-widgets/divelistview.h
+++ b/desktop-widgets/divelistview.h
@@ -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);