From e41d067227eb6225b05df88ab724708588fa5304 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 26 Feb 2018 11:49:47 +0100 Subject: AnimatedSprite: set implicit size based on implicit frame size By doing so, users no longer need to set an implicit or explicit size for AnimatedSprite. [ChangeLog][QtQuick][AnimatedSprite] AnimatedSprite's implicitWidth and implicitHeight are now based on frameWidth and frameHeight, respectively. This means it is no longer necessary to explicitly size AnimatedSprite. Task-number: QTBUG-36341 Change-Id: I3eb87e9b1c6bb93b3c667123c345341f34e2eee8 Reviewed-by: Shawn Rutledge --- examples/quick/imageelements/animatedsprite.qml | 2 -- 1 file changed, 2 deletions(-) (limited to 'examples') diff --git a/examples/quick/imageelements/animatedsprite.qml b/examples/quick/imageelements/animatedsprite.qml index ba3d8ffdbc..0c6bf5e28d 100644 --- a/examples/quick/imageelements/animatedsprite.qml +++ b/examples/quick/imageelements/animatedsprite.qml @@ -60,8 +60,6 @@ Item { //! [sprite] AnimatedSprite { id: sprite - width: 170 - height: 170 anchors.centerIn: parent source: "content/speaker.png" frameCount: 60 -- cgit v1.2.3