aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-03-19 22:05:52 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-04-12 18:19:07 +0300
commit4cb1ceefff96121331f63e1455d233b32b3d7680 (patch)
tree8ff4e229f4f4a19a5d420d415a254727eb9d2443 /desktop-widgets/tab-widgets/maintab.h
parentde579c1a1ad823fbc42d7e3122b77b03626283c3 (diff)
downloadsubsurface-4cb1ceefff96121331f63e1455d233b32b3d7680.tar.gz
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>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.h')
-rw-r--r--desktop-widgets/tab-widgets/maintab.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h
index 36f9a64a9..805618857 100644
--- a/desktop-widgets/tab-widgets/maintab.h
+++ b/desktop-widgets/tab-widgets/maintab.h
@@ -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();