mirror of
https://github.com/amnezia-vpn/amnezia-client.git
synced 2026-06-23 02:00:20 +07:00
cc3d9e0d2d
* QZXing : Error while integrating it
36 lines
901 B
QML
36 lines
901 B
QML
import QtQuick
|
|
import QtQml
|
|
|
|
Behavior {
|
|
id: root
|
|
|
|
property QtObject fadeTarget: targetProperty.object
|
|
property string fadeProperty: "scale"
|
|
property int fadeDuration: 150
|
|
property string easingType: "Quad"
|
|
|
|
property alias outAnimation: outAnimation
|
|
property alias inAnimation: inAnimation
|
|
|
|
SequentialAnimation {
|
|
NumberAnimation {
|
|
id: outAnimation
|
|
target: root.fadeTarget
|
|
property: root.fadeProperty
|
|
duration: root.fadeDuration
|
|
to: 0
|
|
easing.type: Easing["In"+root.easingType]
|
|
}
|
|
PropertyAction { }
|
|
NumberAnimation {
|
|
id: inAnimation
|
|
target: root.fadeTarget
|
|
property: root.fadeProperty
|
|
duration: root.fadeDuration
|
|
to: target[property]
|
|
easing.type: Easing["Out"+root.easingType]
|
|
}
|
|
}
|
|
|
|
}
|