QML UI: animate showing the dive edit sheet

This requires a change to Kirigami so that a property change (instead of
calling the open() function) can trigger the animation.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-04-01 21:15:58 -05:00
parent 6c8736adb8
commit faa22d5343

View file

@ -39,17 +39,17 @@ Kirigami.Page {
State { State {
name: "view" name: "view"
PropertyChanges { target: diveDetailsPage; contextualActions: Qt.platform.os == "ios" ? [ deleteAction, backAction ] : [ deleteAction ] } PropertyChanges { target: diveDetailsPage; contextualActions: Qt.platform.os == "ios" ? [ deleteAction, backAction ] : [ deleteAction ] }
PropertyChanges { target: detailsEditScroll; visible: false } PropertyChanges { target: detailsEditScroll; show: false }
}, },
State { State {
name: "edit" name: "edit"
PropertyChanges { target: diveDetailsPage; contextualActions: Qt.platform.os == "ios" ? [ cancelAction ] : null } PropertyChanges { target: diveDetailsPage; contextualActions: Qt.platform.os == "ios" ? [ cancelAction ] : null }
PropertyChanges { target: detailsEditScroll; visible: true } PropertyChanges { target: detailsEditScroll; show: true }
}, },
State { State {
name: "add" name: "add"
PropertyChanges { target: diveDetailsPage; contextualActions: Qt.platform.os == "ios" ? [ cancelAction ] : null } PropertyChanges { target: diveDetailsPage; contextualActions: Qt.platform.os == "ios" ? [ cancelAction ] : null }
PropertyChanges { target: detailsEditScroll; visible: true } PropertyChanges { target: detailsEditScroll; show: true }
} }
] ]