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>
This commit is contained in:
Dirk Hohndel 2016-02-12 22:26:47 -08:00
parent 692719f230
commit a91d4164b4
7 changed files with 14 additions and 7 deletions

View file

@ -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: {