From 147a36647ce6148ef2eccbe393faa658d0fe6834 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 2 Nov 2019 21:19:29 +0100 Subject: Undo: make adding of weights an undoable action Introduce an AddWeight undo command. This is modelled after the numerous dive-edit undo commands. The redo and undo actions are connected to the WeightModel via two new signals, weightAdded and weightRemoved. Signed-off-by: Berthold Stoeger --- core/subsurface-qt/DiveListNotifier.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/subsurface-qt/DiveListNotifier.h') diff --git a/core/subsurface-qt/DiveListNotifier.h b/core/subsurface-qt/DiveListNotifier.h index b82c0ac05..8c681948e 100644 --- a/core/subsurface-qt/DiveListNotifier.h +++ b/core/subsurface-qt/DiveListNotifier.h @@ -86,6 +86,8 @@ signals: void cylindersReset(const QVector &dives); void weightsystemsReset(const QVector &dives); + void weightAdded(dive *d, int pos); + void weightRemoved(dive *d, int pos); // Trip edited signal void tripChanged(dive_trip *trip, TripField field); -- cgit v1.2.3-70-g09d2