dive edit gets contextual actions

Option to switch between view and edit and to save the changes are now
in the context drawer. Let's see how this works out.

If it turns out to be badly discoverable (which is what I'm worried
about), this needs to be fixed at component level.
This commit is contained in:
Sebastian Kügler 2015-12-04 03:38:58 +01:00
parent 610ce4325f
commit de5bb98dba

View file

@ -1,5 +1,5 @@
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Controls 1.4
import QtQuick.Controls.Styles 1.2
import QtQuick.Dialogs 1.2
import QtQuick.Layouts 1.1
@ -75,20 +75,6 @@ MobileComponents.Page {
width: flick.width
height: childrenRect.height + MobileComponents.Units.smallSpacing * 2
Button {
checkable: true
text: "Edit"
z: 999
anchors {
top: parent.top
right: parent.right
margins: MobileComponents.Units.gridUnit / 2
}
onCheckedChanged: {
diveDetailsWindow.state = checked ? "edit" : "view"
}
}
DiveDetailsEdit {
id: detailsEdit
anchors {