From 2e230da3610dd1fc61badaf328a084512895fb90 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 23 Jun 2019 12:46:42 +0200 Subject: Cleanup: unify selection signals For historic reasons, there where three distinct signals concerning dive-selection from the undo-machinery: 1) divesSelected: sent newly selected dives 2) currentDiveChanged: sent if the current dive changed 3) selectionChanged: sent at the end of a command if either the selection or the current dive changed Since now the undo-commands do a full reset of the selection, merge these three signals into a single signal. Signed-off-by: Berthold Stoeger --- core/subsurface-qt/DiveListNotifier.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'core/subsurface-qt') diff --git a/core/subsurface-qt/DiveListNotifier.h b/core/subsurface-qt/DiveListNotifier.h index 7f97cbf8c..64ef71481 100644 --- a/core/subsurface-qt/DiveListNotifier.h +++ b/core/subsurface-qt/DiveListNotifier.h @@ -52,15 +52,7 @@ signals: // Trip edited signal void tripChanged(dive_trip *trip, TripField field); - // Selection-signals come in two kinds: - // - divesSelected and currentDiveChanged are are used by the dive-list - // model and view to correctly highlight the correct dives. - // - selectionChanged() is called once at the end of commands if either the selection - // or the current dive changed. It is used by the main-window / profile to update - // their data. - void divesSelected(const QVector &dives); - void currentDiveChanged(); - void selectionChanged(); + void divesSelected(const QVector &dives, dive *current); // Dive site signals. Add and delete events are sent per dive site and // provide an index into the global dive site table. -- cgit v1.2.3-70-g09d2