summaryrefslogtreecommitdiffstats
path: root/qt-models/divetripmodel.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-06-23 12:46:42 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-06-23 20:08:46 +0200
commit2e230da3610dd1fc61badaf328a084512895fb90 (patch)
tree9f44691f588c3a1d846da5318e6e4148b95a6ef9 /qt-models/divetripmodel.h
parent4716c820322dd654e43dc47087866b066b2e5910 (diff)
downloadsubsurface-2e230da3610dd1fc61badaf328a084512895fb90.tar.gz
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 <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divetripmodel.h')
-rw-r--r--qt-models/divetripmodel.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/qt-models/divetripmodel.h b/qt-models/divetripmodel.h
index 734612ff7..8ddcf9615 100644
--- a/qt-models/divetripmodel.h
+++ b/qt-models/divetripmodel.h
@@ -108,8 +108,7 @@ public slots:
void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector<dive *> &dives);
void divesChanged(const QVector<dive *> &dives);
void divesTimeChanged(timestamp_t delta, const QVector<dive *> &dives);
- void divesSelected(const QVector<dive *> &dives);
- void currentDiveChanged();
+ void divesSelected(const QVector<dive *> &dives, dive *current);
void tripChanged(dive_trip *trip, TripField);
public:
@@ -175,8 +174,7 @@ public slots:
void divesTimeChanged(timestamp_t delta, const QVector<dive *> &dives);
// Does nothing in list view.
//void divesMovedBetweenTrips(dive_trip *from, dive_trip *to, bool deleteFrom, bool createTo, const QVector<dive *> &dives);
- void divesSelected(const QVector<dive *> &dives);
- void currentDiveChanged();
+ void divesSelected(const QVector<dive *> &dives, dive *current);
public:
DiveTripModelList(QObject *parent = nullptr);