mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Mobile/filtering: improve code readability
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e5ee895793
commit
cadb072a0c
1 changed files with 5 additions and 19 deletions
|
@ -385,37 +385,23 @@ Kirigami.ScrollablePage {
|
||||||
from: "isHidden"
|
from: "isHidden"
|
||||||
to: "isVisible"
|
to: "isVisible"
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
NumberAnimation {
|
NumberAnimation { property: "visible"; duration: 1 }
|
||||||
property: "visible"
|
NumberAnimation { property: "height"; duration: 200; easing.type: Easing.InOutQuad }
|
||||||
duration: 1
|
|
||||||
}
|
|
||||||
NumberAnimation {
|
|
||||||
property: "height"
|
|
||||||
duration: 200
|
|
||||||
easing.type: Easing.InOutQuad
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
Transition {
|
Transition {
|
||||||
from: "isVisible"
|
from: "isVisible"
|
||||||
to: "isHidden"
|
to: "isHidden"
|
||||||
SequentialAnimation {
|
SequentialAnimation {
|
||||||
NumberAnimation {
|
NumberAnimation { property: "height"; duration: 200; easing.type: Easing.InOutQuad }
|
||||||
property: "height"
|
NumberAnimation { property: "visible"; duration: 1 }
|
||||||
duration: 200
|
|
||||||
easing.type: Easing.InOutQuad
|
|
||||||
}
|
|
||||||
NumberAnimation {
|
|
||||||
property: "visible"
|
|
||||||
duration: 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
Rectangle {
|
Rectangle { // margins didn't work, but adding a rectangle did
|
||||||
width: Kirigami.Units.gridUnit / 4
|
width: Kirigami.Units.gridUnit / 4
|
||||||
}
|
}
|
||||||
onVisibleChanged: numShown.text = diveModel.shown()
|
onVisibleChanged: numShown.text = diveModel.shown()
|
||||||
|
|
Loading…
Add table
Reference in a new issue