mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: unify selection behavior in dive-list commands
Some commands tried to retain the current selection on undo/redo, others set the selection to the modified dives. The latter was introduced because it was easier in some cases, but it is probably more user-friendly because the user gets feedback on the change. Therefore, unify to always select the affected dives on undo()/redo(). Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
27944a52b1
commit
e1abf9485c
7 changed files with 48 additions and 56 deletions
|
@ -53,13 +53,12 @@ signals:
|
|||
void tripChanged(dive_trip *trip, TripField field);
|
||||
|
||||
// Selection-signals come in two kinds:
|
||||
// - divesSelected, divesDeselected and currentDiveChanged are are used by the dive-list
|
||||
// - 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<dive *> &dives);
|
||||
void divesDeselected(const QVector<dive *> &dives);
|
||||
void currentDiveChanged();
|
||||
void selectionChanged();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue