diff options
author | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2021-08-31 17:54:15 +0200 |
---|---|---|
committer | Oliver Eftevaag <oliver.eftevaag@qt.io> | 2021-09-29 09:47:47 +0200 |
commit | 0ee06b3dd5b686619a0d0acf58aad87703b181f1 (patch) | |
tree | 72db065bed5346e6ce51803d762d9ab7aa271e32 /examples/quick/imageelements/spritesequence.qml | |
parent | 5bac7893599ab3f2ac28076763f091e46f32f8e7 (diff) |
Fix ImageElements example to use a QML module
Removed the 'content' directory, and placed all images into a 'pics'
directory.
CMakeLists.txt is now also using qt_add_qml_module()
Change-Id: I673b7adea1832f304003f95e171118b0822b3c83
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
(cherry picked from commit 34bc389543c37b8439c9c0b48f471649b6529868)
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/quick/imageelements/spritesequence.qml')
-rw-r--r-- | examples/quick/imageelements/spritesequence.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/quick/imageelements/spritesequence.qml b/examples/quick/imageelements/spritesequence.qml index b017ade229..a047b22fbc 100644 --- a/examples/quick/imageelements/spritesequence.qml +++ b/examples/quick/imageelements/spritesequence.qml @@ -75,7 +75,7 @@ Item { //! [still] Sprite { name: "still" - source: "content/BearSheet.png" + source: "pics/BearSheet.png" frameCount: 1 frameWidth: 256 frameHeight: 256 @@ -85,7 +85,7 @@ Item { //! [still] Sprite { name: "blink" - source: "content/BearSheet.png" + source: "pics/BearSheet.png" frameCount: 3 frameX: 256 frameY: 1536 @@ -96,7 +96,7 @@ Item { } Sprite { name: "floating" - source: "content/BearSheet.png" + source: "pics/BearSheet.png" frameCount: 9 frameX: 0 frameY: 0 @@ -107,7 +107,7 @@ Item { } Sprite { name: "flailing" - source: "content/BearSheet.png" + source: "pics/BearSheet.png" frameCount: 8 frameX: 0 frameY: 768 @@ -118,7 +118,7 @@ Item { } Sprite { name: "falling" - source: "content/BearSheet.png" + source: "pics/BearSheet.png" frameCount: 5 frameY: 1280 frameWidth: 256 |