on xenial help sign in
Actually fix the showable warnings
commit4d8deb25da79293f43aa07fea40dac437c31b758 authorRodney Dawes <dobey@ubports.com> dateMon 26 Oct 2020, 16:06 (6 years ago) parent0b10f71
1 file changed+4−4
qml/Components/Showable.qml+4−4
qml/Components/Showable.qml+4−4
@@ -35,13 +35,13 @@ Item {
3535 property bool __skipHideAnimation: false
3636
3737 property list<QtObject> hides
38− property PropertyAnimation showAnimation
39− property PropertyAnimation hideAnimation
38+ property Animation showAnimation
39+ property Animation hideAnimation
4040
4141 // automatically set the target on showAnimation and hideAnimation to be the
4242 // showable itself
43− onShowAnimationChanged: if (showAnimation) showAnimation["target"] = showable
44− onHideAnimationChanged: if (hideAnimation) hideAnimation["target"] = showable
43+ onShowAnimationChanged: if (showAnimation && showAnimation.hasOwnProperty("target")) showAnimation["target"] = showable
44+ onHideAnimationChanged: if (hideAnimation && hideAnimation.hasOwnProperty("target")) hideAnimation["target"] = showable
4545
4646 Component.onCompleted: required = shown;
4747