aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/particles/system
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2012-12-11 14:17:34 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-12 10:32:50 +0100
commita0fb0a5dd32b031f89abe603ed07a50c74327e37 (patch)
tree04dd8b801c1e5daca81701542a8f6815c8b35274 /examples/quick/particles/system
parentb570d384c0704ea12364e353493eeb6f1ae34cd3 (diff)
Use resource files for most examples
Make examples shadow-build-friendly by using resource files instead of trying to derive the qml path from applicationDirPath(). Change-Id: I669424554c772d9b261249b366247190f5fbd8b1 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Diffstat (limited to 'examples/quick/particles/system')
-rw-r--r--examples/quick/particles/system/main.cpp2
-rw-r--r--examples/quick/particles/system/system.pro8
-rw-r--r--examples/quick/particles/system/system.qrc10
3 files changed, 16 insertions, 4 deletions
diff --git a/examples/quick/particles/system/main.cpp b/examples/quick/particles/system/main.cpp
index ea67283822..0bc840474c 100644
--- a/examples/quick/particles/system/main.cpp
+++ b/examples/quick/particles/system/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(system)
+DECLARATIVE_EXAMPLE_MAIN(particles/system/system)
diff --git a/examples/quick/particles/system/system.pro b/examples/quick/particles/system/system.pro
index f2e3567543..df143f10a3 100644
--- a/examples/quick/particles/system/system.pro
+++ b/examples/quick/particles/system/system.pro
@@ -2,8 +2,10 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ system.qrc \
+ ../images.qrc \
+ ../../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/system
-qml.files = system.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/system
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/particles/system/system.qrc b/examples/quick/particles/system/system.qrc
new file mode 100644
index 0000000000..3fb8221fb1
--- /dev/null
+++ b/examples/quick/particles/system/system.qrc
@@ -0,0 +1,10 @@
+<RCC>
+ <qresource prefix="/particles/system">
+ <file>system.qml</file>
+ <file>content/dynamiccomparison.qml</file>
+ <file>content/dynamicemitters.qml</file>
+ <file>content/multiplepainters.qml</file>
+ <file>content/startstop.qml</file>
+ <file>content/timedgroupchanges.qml</file>
+ </qresource>
+</RCC>