aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/tutorials/samegame/samegame2/samegame.qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-08-30 15:46:39 +0200
committerUlf Hermann <ulf.hermann@qt.io>2021-08-31 11:26:10 +0200
commita3ea7a99381748c457336bfa8b9373070ebfa3ee (patch)
treeffd1767dcf3eafe8766185aad252058b451867b7 /examples/quick/tutorials/samegame/samegame2/samegame.qml
parentea5911adbb6527d679338cd39dd1c3f843c0f7ce (diff)
Fix samegame example to use QML modules
In this case it really makes no sense to use a shared directory because we want to show the progressive changes between the different versions. It's actually important to note that we're adding the pictures one by one. Therefore, the shared directory is dissolved and the pictures added duplicated into the respective versions of samegame. Furthermore, moving the code into a "content" directory is a bad idea because it complicates the import logic. We don't want to make the "content" directory its own QML module. We might move samegame.qml into the "content" directory, too, and apply some path wrangling to make it work, but it's really not worth it here. Pick-to: 6.2 Change-Id: Ifc45f48832596377c21bc6ef55e918ef487bc94e Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'examples/quick/tutorials/samegame/samegame2/samegame.qml')
-rw-r--r--examples/quick/tutorials/samegame/samegame2/samegame.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/tutorials/samegame/samegame2/samegame.qml b/examples/quick/tutorials/samegame/samegame2/samegame.qml
index 2c68fcf155..473b52f9ed 100644
--- a/examples/quick/tutorials/samegame/samegame2/samegame.qml
+++ b/examples/quick/tutorials/samegame/samegame2/samegame.qml
@@ -67,7 +67,7 @@ Rectangle {
Image {
id: background
anchors.fill: parent
- source: "../shared/pics/background.jpg"
+ source: "pics/background.jpg"
fillMode: Image.PreserveAspectCrop
}
}