Dialog opacity transition tidying

This commit is contained in:
David Rowe 2015-05-29 15:23:55 -07:00
parent 2a931119bd
commit a43593c3b2
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ DialogBase {
* Support for animating the dialog in and out. * Support for animating the dialog in and out.
*/ */
enabled: false enabled: false
opacity: 0.0 opacity: 1.0
// The offscreen UI will enable an object, rather than manipulating it's // The offscreen UI will enable an object, rather than manipulating it's
// visibility, so that we can do animations in both directions. Because // visibility, so that we can do animations in both directions. Because
@ -46,7 +46,7 @@ DialogBase {
// The actual animator // The actual animator
Behavior on opacity { Behavior on opacity {
NumberAnimation { NumberAnimation {
duration: 300 duration: animationDuration
easing.type: Easing.OutCubic easing.type: Easing.OutCubic
} }
} }

View file

@ -56,6 +56,6 @@ Item {
QtObject { QtObject {
id: effects id: effects
readonly property int fadeInDuration: 400 readonly property int fadeInDuration: 300
} }
} }