mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: update notes field if changed by undo commands
To keep the UI in a consistent state, update the notes field if it is changed by an undo command. To that purpose, add a new signal to diveListNotifier with a list of dives and a field-id as payload. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
9e603cbe2b
commit
45ef879546
5 changed files with 67 additions and 12 deletions
|
@ -17,6 +17,7 @@
|
|||
#include "qt-models/completionmodels.h"
|
||||
#include "qt-models/divelocationmodel.h"
|
||||
#include "core/dive.h"
|
||||
#include "core/subsurface-qt/DiveListNotifier.h"
|
||||
|
||||
class WeightModel;
|
||||
class CylindersModel;
|
||||
|
@ -62,9 +63,11 @@ signals:
|
|||
void diveSiteChanged();
|
||||
public
|
||||
slots:
|
||||
void divesEdited(const QVector<dive *> &dives, DiveField field);
|
||||
void addCylinder_clicked();
|
||||
void addWeight_clicked();
|
||||
void updateDiveInfo(bool clear = false);
|
||||
void updateNotes(const struct dive *d);
|
||||
void updateDepthDuration();
|
||||
void acceptChanges();
|
||||
void rejectChanges();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue