Set HStackView transitions that make sense
This commit is contained in:
parent
4db69424b8
commit
dbfe04458c
|
@ -4,4 +4,35 @@ import QtQuick 2.12
|
|||
import QtQuick.Controls 2.12
|
||||
|
||||
StackView {
|
||||
pushEnter: Transition {
|
||||
HNumberAnimation {
|
||||
property: "scale"
|
||||
from: 0
|
||||
to: 1
|
||||
}
|
||||
}
|
||||
|
||||
pushExit: Transition {
|
||||
HNumberAnimation {
|
||||
property: "opacity"
|
||||
from: 1
|
||||
to: 0
|
||||
}
|
||||
}
|
||||
|
||||
popEnter: Transition {
|
||||
HNumberAnimation {
|
||||
property: "opacity"
|
||||
from: 0
|
||||
to: 1
|
||||
}
|
||||
}
|
||||
|
||||
popExit: Transition {
|
||||
HNumberAnimation {
|
||||
property: "scale"
|
||||
from: 1
|
||||
to: 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user