summaryrefslogtreecommitdiff
path: root/src/controls/Private
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-09-18 15:04:21 +0200
committerRichard Moe Gustavsen <richard.gustavsen@digia.com>2014-09-18 15:30:30 +0200
commit9328e5260f7864fec0624937a91c5dd45b754b9c (patch)
tree85306c2c071859647fbd10af62b1e070742862de /src/controls/Private
parent7884c8c8189b560cd5c0bdb4e8665419a8e307ec (diff)
downloadqtquickcontrols-9328e5260f7864fec0624937a91c5dd45b754b9c.tar.gz
StackViewSlideDelegate: change default slide animation
The linear animation is a bit unusable and further away from native look and feel on all platforms than what we change to with this patch. Change-Id: I60525555e72485f6b12a9af3a56770dbd7203d15 Reviewed-by: Jens Bache-Wiig <jensbw@gmail.com>
Diffstat (limited to 'src/controls/Private')
-rw-r--r--src/controls/Private/StackViewSlideDelegate.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/controls/Private/StackViewSlideDelegate.qml b/src/controls/Private/StackViewSlideDelegate.qml
index dbacbffa..632551fc 100644
--- a/src/controls/Private/StackViewSlideDelegate.qml
+++ b/src/controls/Private/StackViewSlideDelegate.qml
@@ -69,14 +69,16 @@ StackViewDelegate {
property: "x"
from: target.width
to: 0
- duration: 300
+ duration: 400
+ easing.type: Easing.OutCubic
}
PropertyAnimation {
target: exitItem
property: "x"
from: 0
to: -target.width
- duration: 300
+ duration: 400
+ easing.type: Easing.OutCubic
}
}
@@ -86,14 +88,16 @@ StackViewDelegate {
property: "x"
from: -target.width
to: 0
- duration: 300
+ duration: 400
+ easing.type: Easing.OutCubic
}
PropertyAnimation {
target: exitItem
property: "x"
from: 0
to: target.width
- duration: 300
+ duration: 400
+ easing.type: Easing.OutCubic
}
}
property Component replaceTransition: pushTransition