summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-18 06:32:55 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-23 22:45:29 +0100
commitcadb072a0c1897291920849458700c4f5878a2c3 (patch)
tree60ea32096dede884aa470579f1959095dc977bea /mobile-widgets/qml
parente5ee895793fcbece5941ba57b331343cc7b122b4 (diff)
downloadsubsurface-cadb072a0c1897291920849458700c4f5878a2c3.tar.gz
Mobile/filtering: improve code readability
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/DiveList.qml24
1 files changed, 5 insertions, 19 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml
index d8adbf73e..9c2c9fbb8 100644
--- a/mobile-widgets/qml/DiveList.qml
+++ b/mobile-widgets/qml/DiveList.qml
@@ -385,37 +385,23 @@ Kirigami.ScrollablePage {
from: "isHidden"
to: "isVisible"
SequentialAnimation {
- NumberAnimation {
- property: "visible"
- duration: 1
- }
- NumberAnimation {
- property: "height"
- duration: 200
- easing.type: Easing.InOutQuad
- }
+ NumberAnimation { property: "visible"; duration: 1 }
+ NumberAnimation { property: "height"; duration: 200; easing.type: Easing.InOutQuad }
}
},
Transition {
from: "isVisible"
to: "isHidden"
SequentialAnimation {
- NumberAnimation {
- property: "height"
- duration: 200
- easing.type: Easing.InOutQuad
- }
- NumberAnimation {
- property: "visible"
- duration: 1
- }
+ NumberAnimation { property: "height"; duration: 200; easing.type: Easing.InOutQuad }
+ NumberAnimation { property: "visible"; duration: 1 }
}
}
]
anchors.left: parent.left
anchors.right: parent.right
- Rectangle {
+ Rectangle { // margins didn't work, but adding a rectangle did
width: Kirigami.Units.gridUnit / 4
}
onVisibleChanged: numShown.text = diveModel.shown()