on xenial help sign in
Actually fix the showable warnings
4be52feRodney Dawes
qml/Components/Showable.qml+4−4
@@ -35,13 +35,13 @@ Item {
35 property bool __skipHideAnimation: false
35 property bool __skipHideAnimation: false
36
36
37 property list<QtObject> hides
37 property list<QtObject> hides
38− property PropertyAnimation showAnimation
38+ property Animation showAnimation
39− property PropertyAnimation hideAnimation
39+ property Animation hideAnimation
40
40
41 // automatically set the target on showAnimation and hideAnimation to be the
41 // automatically set the target on showAnimation and hideAnimation to be the
42 // showable itself
42 // showable itself
43− onShowAnimationChanged: if (showAnimation) showAnimation["target"] = showable
43+ onShowAnimationChanged: if (showAnimation && showAnimation.hasOwnProperty("target")) showAnimation["target"] = showable
44− onHideAnimationChanged: if (hideAnimation) hideAnimation["target"] = showable
44+ onHideAnimationChanged: if (hideAnimation && hideAnimation.hasOwnProperty("target")) hideAnimation["target"] = showable
45
45
46 Component.onCompleted: required = shown;
46 Component.onCompleted: required = shown;
47
47