mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
610ce4325f
commit
de5bb98dba
1 changed files with 1 additions and 15 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue