summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-11-14 22:19:58 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-03-09 12:41:57 -0700
commit9fb52cc45c22191b26c4d1f8ce98e9d88a5bee83 (patch)
treefd2b7729daffc7c516d71d0b5c2131ffa257cd78 /mobile-widgets/qmlmanager.h
parentc0095f690fe2a0b56a6c5d52e03a3b3130e9f6b6 (diff)
downloadsubsurface-9fb52cc45c22191b26c4d1f8ce98e9d88a5bee83.tar.gz
mobile/undo: create undo-action and connect to undo of dive deletion
Still buggy: Removing a dive followed by undo shows the wrong dive in the list. But clicking on it gives the correct dive. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.h')
-rw-r--r--mobile-widgets/qmlmanager.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.h b/mobile-widgets/qmlmanager.h
index 74addbc50..b1bdfd2b7 100644
--- a/mobile-widgets/qmlmanager.h
+++ b/mobile-widgets/qmlmanager.h
@@ -19,6 +19,8 @@
#include "core/settings/qPrefCloudStorage.h"
#include "core/subsurface-qt/divelistnotifier.h"
+class QAction;
+
class QMLManager : public QObject {
Q_OBJECT
Q_PROPERTY(QString logText READ logText WRITE setLogText NOTIFY logTextChanged)
@@ -264,6 +266,7 @@ private:
bool m_showNonDiveComputers;
struct dive *m_copyPasteDive = NULL;
struct dive_components what;
+ QAction *undoAction;
bool verifyCredentials(QString email, QString password, QString pin);