aboutsummaryrefslogtreecommitdiffstats
path: root/qt-mobile
diff options
context:
space:
mode:
authorGravatar Sebastian Kügler <sebas@kde.org>2015-12-04 03:38:58 +0100
committerGravatar Sebastian Kügler <sebas@kde.org>2015-12-07 18:46:57 +0100
commitde5bb98dba99e0927fbc2b6eb88c421f71d9b68f (patch)
treec671d291c0a4a69fd6df91c4ad910d232dd0a369 /qt-mobile
parent610ce4325f32d0797851d15223c40f6a99f75476 (diff)
downloadsubsurface-de5bb98dba99e0927fbc2b6eb88c421f71d9b68f.tar.gz
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.
Diffstat (limited to 'qt-mobile')
-rw-r--r--qt-mobile/qml/DiveDetails.qml16
1 files changed, 1 insertions, 15 deletions
diff --git a/qt-mobile/qml/DiveDetails.qml b/qt-mobile/qml/DiveDetails.qml
index f60d39acb..d46777e41 100644
--- a/qt-mobile/qml/DiveDetails.qml
+++ b/qt-mobile/qml/DiveDetails.qml
@@ -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 {