aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile/qml/DiveDetails.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-12 22:26:47 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-02-12 22:26:47 -0800
commita91d4164b4e64fcf02dc32c1e3379b3cc15af307 (patch)
tree1958354a02b69c2701908b26a751a5c65ddbbe78 /qt-mobile/qml/DiveDetails.qml
parent692719f230842b247dad9704e1d2e77d2f724305 (diff)
downloadsubsurface-a91d4164b4e64fcf02dc32c1e3379b3cc15af307.tar.gz
QML UI: remove the redundant context menus that just close the page
Android users are well used to using the back key for this. I kept the code in place as things may end up completely different on IOS or other mobile platforms. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-mobile/qml/DiveDetails.qml')
-rw-r--r--qt-mobile/qml/DiveDetails.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index 3f637784e..5a39576e8 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -52,7 +52,7 @@ MobileComponents.Page {
state = "view"
Qt.inputMethod.hide()
}
-
+/* this can be done by hitting the back key
contextualActions: [
Action {
text: state === "view" ? "Back to dive list" : "Cancel"
@@ -71,7 +71,7 @@ MobileComponents.Page {
}
}
]
-
+ */
mainAction: Action {
iconName: state !== "view" ? "dialog-cancel" : "document-edit"
onTriggered: {