Add HX/YAnimator, used instead of HNumberAnimation
This commit is contained in:
parent
6a442da16f
commit
68d7c11c58
7
src/qml/Base/HXAnimator.qml
Normal file
7
src/qml/Base/HXAnimator.qml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import QtQuick 2.12
|
||||||
|
|
||||||
|
XAnimator {
|
||||||
|
duration: theme.animationDuration * factor
|
||||||
|
|
||||||
|
property real factor: 1.0
|
||||||
|
}
|
7
src/qml/Base/HYAnimator.qml
Normal file
7
src/qml/Base/HYAnimator.qml
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
import QtQuick 2.12
|
||||||
|
|
||||||
|
YAnimator {
|
||||||
|
duration: theme.animationDuration * factor
|
||||||
|
|
||||||
|
property real factor: 1.0
|
||||||
|
}
|
|
@ -99,7 +99,7 @@ Column {
|
||||||
id: eventContent
|
id: eventContent
|
||||||
width: parent.width
|
width: parent.width
|
||||||
|
|
||||||
Behavior on x { HNumberAnimation {} }
|
Behavior on x { HXAnimator {} }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user