diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-02-06 12:08:16 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-02-06 12:08:16 -0800 |
commit | d2928a137cabab30973a96a71beee9fd840db516 (patch) | |
tree | 947d70759187c683d64aae5162953a047eade056 | |
parent | 6d8d956853f5fc6b39ef9bdab9157bbb95a155a0 (diff) | |
download | subsurface-d2928a137cabab30973a96a71beee9fd840db516.tar.gz |
QML UI: end edit mode when leaving the edit page
This should fix the problem when using the back key to exit the edit page.
Requires a patch to the mobile components that isn't upstream, yet.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-mobile/qml/DiveDetails.qml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml index ef51a71b2..e06c7211d 100644 --- a/qt-mobile/qml/DiveDetails.qml +++ b/qt-mobile/qml/DiveDetails.qml @@ -43,6 +43,13 @@ MobileComponents.Page { } ] + popAction: Action { + onTriggered: { + print("popped") + state = "view" + } + } + mainAction: Action { iconName: state !== "view" ? "dialog-cancel" : "document-edit" onTriggered: { |