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

@ -8,6 +8,7 @@ MobileComponents.Page {
id: aboutPage
property int pageWidth: subsurfaceTheme.columnWidth - MobileComponents.Units.gridUnit
/* this can be done by hitting the back key
contextualActions: [
Action {
text: "Close About"
@ -18,7 +19,7 @@ MobileComponents.Page {
}
}
]
*/
ScrollView {
anchors.fill: parent

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

View file

@ -14,6 +14,7 @@ MobileComponents.Page {
height: parent.height
Layout.fillWidth: true;
/* this can be done by hitting the back key
contextualActions: [
Action {
text: "Close Preferences"
@ -24,7 +25,7 @@ MobileComponents.Page {
}
}
]
*/
ColumnLayout {
anchors.top: parent.top
height: parent.height

View file

@ -14,6 +14,7 @@ MobileComponents.Page {
anchors.margins: MobileComponents.Units.gridUnit / 2
objectName: "gpsList"
/* this can be done by hitting the back key
contextualActions: [
Action {
text: "Close GPS list"
@ -24,6 +25,7 @@ MobileComponents.Page {
}
}
]
*/
Component {
id: gpsDelegate
MobileComponents.ListItemWithActions {

View file

@ -14,6 +14,7 @@ MobileComponents.Page {
anchors.margins: MobileComponents.Units.gridUnit / 2
objectName: "Log"
/* this can be done by hitting the back key
contextualActions: [
Action {
text: "Close Log"
@ -24,7 +25,7 @@ MobileComponents.Page {
}
}
]
*/
ScrollView {
anchors.fill: parent
Flickable {

View file

@ -8,6 +8,7 @@ import org.subsurfacedivelog.mobile 1.0
MobileComponents.Page {
/* this can be done by hitting the back key
contextualActions: [
Action {
text: "Close Preferences"
@ -18,7 +19,7 @@ MobileComponents.Page {
}
}
]
*/
GridLayout {
signal accept

View file

@ -5,6 +5,7 @@ import org.kde.plasma.mobilecomponents 0.2 as MobileComponents
MobileComponents.Page {
/* this can be done by hitting the back key
contextualActions: [
Action {
text: "Close Theme info"
@ -15,7 +16,7 @@ MobileComponents.Page {
}
}
]
*/
GridLayout {
id: themetest
columns: 2