mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
4716c82032
commit
2e230da361
7 changed files with 59 additions and 93 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue