summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2018-02-26 11:49:47 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2018-02-26 22:59:42 +0000
commite41d067227eb6225b05df88ab724708588fa5304 (patch)
tree83c59a2348b46bdff62d55a9b0661cc3cce49e9c /examples
parent18615b6216f0f6b1d5e8eef3ad2013fd87a3bc40 (diff)
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 <shawn.rutledge@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/imageelements/animatedsprite.qml2
1 files changed, 0 insertions, 2 deletions
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