mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Undo: implement undo of dive date- and time-editing
This is different from the other editing commands, because date and time editing may change the order of the dive list. Therefore, this uses an already implemented dive list command. The command is extended to send a divesEdited() signal. This signal and the divesChanged() signal, which is used by the dive list, will be unified in a later commit. Update of the graphics is now not done via signals, a direct call is performed in MainTab::divesEdited(). This simplifies things. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
de579c1a1a
commit
4cb1ceefff
3 changed files with 36 additions and 23 deletions
|
@ -59,7 +59,6 @@ public:
|
|||
|
||||
signals:
|
||||
void addDiveFinished();
|
||||
void dateTimeChanged();
|
||||
void diveSiteChanged();
|
||||
public
|
||||
slots:
|
||||
|
@ -69,6 +68,7 @@ slots:
|
|||
void updateDiveInfo(bool clear = false);
|
||||
void updateNotes(const struct dive *d);
|
||||
void updateMode(struct dive *d);
|
||||
void updateDateTime(struct dive *d);
|
||||
void updateDepthDuration();
|
||||
void acceptChanges();
|
||||
void rejectChanges();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue