aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
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
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')
-rw-r--r--examples/quick/accessibility/accessibility.pro5
-rw-r--r--examples/quick/accessibility/accessibility.qrc8
-rw-r--r--examples/quick/accessibility/main.cpp2
-rw-r--r--examples/quick/animation/animation.pro9
-rw-r--r--examples/quick/animation/animation.qrc22
-rw-r--r--examples/quick/animation/main.cpp2
-rw-r--r--examples/quick/canvas/canvas.pro7
-rw-r--r--examples/quick/canvas/canvas.qrc32
-rw-r--r--examples/quick/canvas/main.cpp2
-rw-r--r--examples/quick/customitems/maskedmousearea/main.cpp2
-rw-r--r--examples/quick/customitems/maskedmousearea/maskedmousearea.pro6
-rw-r--r--examples/quick/customitems/maskedmousearea/maskedmousearea.qrc8
-rw-r--r--examples/quick/customitems/painteditem/painteditem.pro6
-rw-r--r--examples/quick/customitems/painteditem/painteditem.qrc6
-rw-r--r--examples/quick/demos/calqlatr/calqlatr.pro7
-rw-r--r--examples/quick/demos/calqlatr/calqlatr.qrc22
-rw-r--r--examples/quick/demos/calqlatr/main.cpp2
-rw-r--r--examples/quick/demos/maroon/main.cpp2
-rw-r--r--examples/quick/demos/maroon/maroon.pro5
-rw-r--r--examples/quick/demos/maroon/maroon.qrc71
-rw-r--r--examples/quick/demos/samegame/main.cpp2
-rw-r--r--examples/quick/demos/samegame/samegame.pro5
-rw-r--r--examples/quick/demos/samegame/samegame.qrc72
-rw-r--r--examples/quick/demos/stocqt/main.cpp2
-rw-r--r--examples/quick/demos/stocqt/stocqt.pro5
-rw-r--r--examples/quick/demos/stocqt/stocqt.qrc21
-rw-r--r--examples/quick/demos/tweetsearch/main.cpp2
-rw-r--r--examples/quick/demos/tweetsearch/tweetsearch.pro5
-rw-r--r--examples/quick/demos/tweetsearch/tweetsearch.qrc19
-rw-r--r--examples/quick/draganddrop/draganddrop.pro7
-rw-r--r--examples/quick/draganddrop/draganddrop.qrc9
-rw-r--r--examples/quick/draganddrop/main.cpp2
-rw-r--r--examples/quick/imageelements/imageelements.pro7
-rw-r--r--examples/quick/imageelements/imageelements.qrc23
-rw-r--r--examples/quick/imageelements/main.cpp2
-rw-r--r--examples/quick/keyinteraction/keyinteraction.pro5
-rw-r--r--examples/quick/keyinteraction/keyinteraction.qrc12
-rw-r--r--examples/quick/keyinteraction/main.cpp2
-rw-r--r--examples/quick/localstorage/localstorage/localstorage.pro7
-rw-r--r--examples/quick/localstorage/localstorage/localstorage.qrc6
-rw-r--r--examples/quick/localstorage/localstorage/main.cpp2
-rw-r--r--examples/quick/mousearea/main.cpp2
-rw-r--r--examples/quick/mousearea/mousearea.pro5
-rw-r--r--examples/quick/mousearea/mousearea.qrc6
-rw-r--r--examples/quick/particles/affectors/affectors.pro8
-rw-r--r--examples/quick/particles/affectors/affectors.qrc16
-rw-r--r--examples/quick/particles/affectors/main.cpp2
-rw-r--r--examples/quick/particles/customparticle/customparticle.pro9
-rw-r--r--examples/quick/particles/customparticle/customparticle.qrc8
-rw-r--r--examples/quick/particles/customparticle/main.cpp2
-rw-r--r--examples/quick/particles/emitters/emitters.pro8
-rw-r--r--examples/quick/particles/emitters/emitters.qrc12
-rw-r--r--examples/quick/particles/emitters/main.cpp2
-rw-r--r--examples/quick/particles/imageparticle/imageparticle.pro8
-rw-r--r--examples/quick/particles/imageparticle/imageparticle.qrc12
-rw-r--r--examples/quick/particles/imageparticle/main.cpp2
-rw-r--r--examples/quick/particles/images.qrc38
-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
-rw-r--r--examples/quick/positioners/main.cpp2
-rw-r--r--examples/quick/positioners/positioners.pro7
-rw-r--r--examples/quick/positioners/positioners.qrc7
-rw-r--r--examples/quick/righttoleft/main.cpp2
-rw-r--r--examples/quick/righttoleft/righttoleft.pro7
-rw-r--r--examples/quick/righttoleft/righttoleft.qrc8
-rw-r--r--examples/quick/scenegraph/customgeometry/customgeometry.pro7
-rw-r--r--examples/quick/scenegraph/customgeometry/customgeometry.qrc5
-rw-r--r--examples/quick/scenegraph/customgeometry/main.cpp2
-rw-r--r--examples/quick/scenegraph/openglunderqml/main.cpp2
-rw-r--r--examples/quick/scenegraph/openglunderqml/openglunderqml.pro5
-rw-r--r--examples/quick/scenegraph/openglunderqml/openglunderqml.qrc5
-rw-r--r--examples/quick/scenegraph/simplematerial/simplematerial.cpp2
-rw-r--r--examples/quick/scenegraph/simplematerial/simplematerial.pro1
-rw-r--r--examples/quick/scenegraph/simplematerial/simplematerial.qrc5
-rw-r--r--examples/quick/shadereffects/main.cpp2
-rw-r--r--examples/quick/shadereffects/shadereffects.pro5
-rw-r--r--examples/quick/shadereffects/shadereffects.qrc8
-rw-r--r--examples/quick/shared/quick_shared.qrc8
-rw-r--r--examples/quick/shared/shared.h26
-rw-r--r--examples/quick/shared/shared.qrc8
-rw-r--r--examples/quick/text/main.cpp2
-rw-r--r--examples/quick/text/text.pro7
-rw-r--r--examples/quick/text/text.qrc24
-rw-r--r--examples/quick/threading/main.cpp2
-rw-r--r--examples/quick/threading/threading.pro7
-rw-r--r--examples/quick/threading/threading.qrc10
-rw-r--r--examples/quick/touchinteraction/main.cpp2
-rw-r--r--examples/quick/touchinteraction/touchinteraction.pro7
-rw-r--r--examples/quick/touchinteraction/touchinteraction.qrc27
-rw-r--r--examples/quick/views/main.cpp2
-rw-r--r--examples/quick/views/views.pro15
-rw-r--r--examples/quick/views/views.qrc69
-rw-r--r--examples/quick/window/window/window.cpp2
-rw-r--r--examples/quick/window/window/window.pro6
-rw-r--r--examples/quick/window/window/window.qrc5
96 files changed, 758 insertions, 156 deletions
diff --git a/examples/quick/accessibility/accessibility.pro b/examples/quick/accessibility/accessibility.pro
index 9658a8e70b..3f4ea644ac 100644
--- a/examples/quick/accessibility/accessibility.pro
+++ b/examples/quick/accessibility/accessibility.pro
@@ -2,8 +2,7 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += accessibility.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/accessibility
-qml.files = accessibility.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/accessibility
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/accessibility/accessibility.qrc b/examples/quick/accessibility/accessibility.qrc
new file mode 100644
index 0000000000..462a9a590c
--- /dev/null
+++ b/examples/quick/accessibility/accessibility.qrc
@@ -0,0 +1,8 @@
+<RCC>
+ <qresource prefix="/accessibility">
+ <file>accessibility.qml</file>
+ <file>content/Button.qml</file>
+ <file>content/Checkbox.qml</file>
+ <file>content/Slider.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/accessibility/main.cpp b/examples/quick/accessibility/main.cpp
index 51374d0493..07b2e719aa 100644
--- a/examples/quick/accessibility/main.cpp
+++ b/examples/quick/accessibility/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(accessibility)
+DECLARATIVE_EXAMPLE_MAIN(accessibility/accessibility)
diff --git a/examples/quick/animation/animation.pro b/examples/quick/animation/animation.pro
index 58e9226ea5..70d71688a4 100644
--- a/examples/quick/animation/animation.pro
+++ b/examples/quick/animation/animation.pro
@@ -3,8 +3,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
-target.path = $$[QT_INSTALL_EXAMPLES]/quick/animation
-qml.files = animation.qml basics behaviors easing pathanimation pathinterpolator states
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/animation
-INSTALLS += target qml
+RESOURCES += \
+ ../shared/shared.qrc \
+ animation.qrc
+target.path = $$[QT_INSTALL_EXAMPLES]/quick/animation
+INSTALLS += target
diff --git a/examples/quick/animation/animation.qrc b/examples/quick/animation/animation.qrc
new file mode 100644
index 0000000000..d1217ac378
--- /dev/null
+++ b/examples/quick/animation/animation.qrc
@@ -0,0 +1,22 @@
+<RCC>
+ <qresource prefix="/animation">
+ <file>animation.qml</file>
+ <file>basics/images/face-smile.png</file>
+ <file>basics/images/moon.png</file>
+ <file>basics/images/shadow.png</file>
+ <file>basics/images/star.png</file>
+ <file>basics/images/sun.png</file>
+ <file>basics/color-animation.qml</file>
+ <file>basics/property-animation.qml</file>
+ <file>behaviors/behavior-example.qml</file>
+ <file>behaviors/SideRect.qml</file>
+ <file>behaviors/tvtennis.qml</file>
+ <file>behaviors/wigglytext.qml</file>
+ <file>easing/easing.qml</file>
+ <file>pathanimation/pathanimation.qml</file>
+ <file>pathinterpolator/pathinterpolator.qml</file>
+ <file>states/qt-logo.png</file>
+ <file>states/states.qml</file>
+ <file>states/transitions.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/animation/main.cpp b/examples/quick/animation/main.cpp
index dc5b506888..28bf080c46 100644
--- a/examples/quick/animation/main.cpp
+++ b/examples/quick/animation/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(animation)
+DECLARATIVE_EXAMPLE_MAIN(animation/animation)
diff --git a/examples/quick/canvas/canvas.pro b/examples/quick/canvas/canvas.pro
index d721805abd..4c4140407b 100644
--- a/examples/quick/canvas/canvas.pro
+++ b/examples/quick/canvas/canvas.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ canvas.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/canvas
-qml.files = canvas.qml bezierCurve clip quadraticCurveTo roundedrect smile squircle tiger contents
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/canvas
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/canvas/canvas.qrc b/examples/quick/canvas/canvas.qrc
new file mode 100644
index 0000000000..06d39f3624
--- /dev/null
+++ b/examples/quick/canvas/canvas.qrc
@@ -0,0 +1,32 @@
+<RCC>
+ <qresource prefix="/canvas">
+ <file>canvas.qml</file>
+ <file>bezierCurve/bezierCurve.qml</file>
+ <file>clip/clip.qml</file>
+ <file>contents/Button.qml</file>
+ <file>contents/qt-logo.png</file>
+ <file>contents/ScrollBar.qml</file>
+ <file>contents/Slider.qml</file>
+ <file>contents/TitleBar.qml</file>
+ <file>contents/ToolBar.qml</file>
+ <file>contents/images/button-pressed.png</file>
+ <file>contents/images/button.png</file>
+ <file>contents/images/default.svg</file>
+ <file>contents/images/gloss.png</file>
+ <file>contents/images/lineedit.png</file>
+ <file>contents/images/lineedit.sci</file>
+ <file>contents/images/quit.png</file>
+ <file>contents/images/stripes.png</file>
+ <file>contents/images/titlebar.png</file>
+ <file>contents/images/titlebar.sci</file>
+ <file>contents/images/toolbutton.png</file>
+ <file>contents/images/toolbutton.sci</file>
+ <file>quadraticCurveTo/quadraticCurveTo.qml</file>
+ <file>roundedrect/roundedrect.qml</file>
+ <file>smile/smile.qml</file>
+ <file>squircle/squircle.png</file>
+ <file>squircle/squircle.qml</file>
+ <file>tiger/tiger.js</file>
+ <file>tiger/tiger.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/canvas/main.cpp b/examples/quick/canvas/main.cpp
index 52c62ace12..9b2fda197d 100644
--- a/examples/quick/canvas/main.cpp
+++ b/examples/quick/canvas/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(canvas) \ No newline at end of file
+DECLARATIVE_EXAMPLE_MAIN(canvas/canvas)
diff --git a/examples/quick/customitems/maskedmousearea/main.cpp b/examples/quick/customitems/maskedmousearea/main.cpp
index a0ca0b6db7..a0235fc4d4 100644
--- a/examples/quick/customitems/maskedmousearea/main.cpp
+++ b/examples/quick/customitems/maskedmousearea/main.cpp
@@ -51,7 +51,7 @@ int main(int argc, char* argv[])
qmlRegisterType<MaskedMouseArea>("Example", 1, 0, "MaskedMouseArea");
- view.setSource(QUrl::fromLocalFile("maskedmousearea.qml"));
+ view.setSource(QUrl("qrc:///customitems/maskedmousearea/maskedmousearea.qml"));
view.show();
return app.exec();
}
diff --git a/examples/quick/customitems/maskedmousearea/maskedmousearea.pro b/examples/quick/customitems/maskedmousearea/maskedmousearea.pro
index d44fa59d08..fe5c05ce61 100644
--- a/examples/quick/customitems/maskedmousearea/maskedmousearea.pro
+++ b/examples/quick/customitems/maskedmousearea/maskedmousearea.pro
@@ -7,7 +7,7 @@ HEADERS += maskedmousearea.h
SOURCES += main.cpp \
maskedmousearea.cpp
+RESOURCES += maskedmousearea.qrc
+
target.path = $$[QT_INSTALL_EXAMPLES]/quick/customitems/maskedmousearea
-qml.files = maskedmousearea.qml images
-qml.path = $$target.path
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/customitems/maskedmousearea/maskedmousearea.qrc b/examples/quick/customitems/maskedmousearea/maskedmousearea.qrc
new file mode 100644
index 0000000000..3cc3955e56
--- /dev/null
+++ b/examples/quick/customitems/maskedmousearea/maskedmousearea.qrc
@@ -0,0 +1,8 @@
+<RCC>
+ <qresource prefix="/customitems/maskedmousearea">
+ <file>maskedmousearea.qml</file>
+ <file>images/cloud_1.png</file>
+ <file>images/cloud_2.png</file>
+ <file>images/moon.png</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/customitems/painteditem/painteditem.pro b/examples/quick/customitems/painteditem/painteditem.pro
index dfe6f96923..8f94a0cecd 100644
--- a/examples/quick/customitems/painteditem/painteditem.pro
+++ b/examples/quick/customitems/painteditem/painteditem.pro
@@ -9,12 +9,12 @@ HEADERS += TextBalloonPlugin/plugin.h \
SOURCES += textballoon.cpp
+RESOURCES += painteditem.qrc
+
DESTDIR = TextBalloonPlugin
target.path = $$[QT_INSTALL_EXAMPLES]/quick/customitems/painteditem/TextBalloonPlugin
qmldir.files = TextBalloonPlugin/qmldir
qmldir.path = $$[QT_INSTALL_EXAMPLES]/quick/customitems/painteditem/TextBalloonPlugin
-qml.files = textballoons.qml
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/customitems/painteditem/
-INSTALLS += qml qmldir target
+INSTALLS += qmldir target
diff --git a/examples/quick/customitems/painteditem/painteditem.qrc b/examples/quick/customitems/painteditem/painteditem.qrc
new file mode 100644
index 0000000000..c240be02a1
--- /dev/null
+++ b/examples/quick/customitems/painteditem/painteditem.qrc
@@ -0,0 +1,6 @@
+<RCC>
+ <qresource prefix="/painteditem">
+ <file>textballoon.h</file>
+ <file>textballoons.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/demos/calqlatr/calqlatr.pro b/examples/quick/demos/calqlatr/calqlatr.pro
index fec0d6416b..1b002a5f27 100644
--- a/examples/quick/demos/calqlatr/calqlatr.pro
+++ b/examples/quick/demos/calqlatr/calqlatr.pro
@@ -3,7 +3,8 @@ TEMPLATE = app
QT += qml quick
SOURCES += main.cpp
+RESOURCES += calqlatr.qrc \
+ ../../shared/shared.qrc
+
target.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/calqlatr
-qml.files = calqlatr.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/calqlatr
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/demos/calqlatr/calqlatr.qrc b/examples/quick/demos/calqlatr/calqlatr.qrc
new file mode 100644
index 0000000000..fda7d35d7e
--- /dev/null
+++ b/examples/quick/demos/calqlatr/calqlatr.qrc
@@ -0,0 +1,22 @@
+<RCC>
+ <qresource prefix="/demos/calqlatr">
+ <file>calqlatr.qml</file>
+ <file>content/Button.qml</file>
+ <file>content/calculator.js</file>
+ <file>content/Display.qml</file>
+ <file>content/NumberPad.qml</file>
+ <file>content/StyleLabel.qml</file>
+ <file>content/audio/touch.wav</file>
+ <file>content/images/icon-back.png</file>
+ <file>content/images/icon-close.png</file>
+ <file>content/images/icon-settings.png</file>
+ <file>content/images/logo.png</file>
+ <file>content/images/paper-edge-left.png</file>
+ <file>content/images/paper-edge-right.png</file>
+ <file>content/images/paper-grip.png</file>
+ <file>content/images/settings-selected-a.png</file>
+ <file>content/images/settings-selected-b.png</file>
+ <file>content/images/touch-green.png</file>
+ <file>content/images/touch-white.png</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/demos/calqlatr/main.cpp b/examples/quick/demos/calqlatr/main.cpp
index 9000bfc7d7..65bfc97f9a 100644
--- a/examples/quick/demos/calqlatr/main.cpp
+++ b/examples/quick/demos/calqlatr/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(calqlatr)
+DECLARATIVE_EXAMPLE_MAIN(demos/calqlatr/calqlatr)
diff --git a/examples/quick/demos/maroon/main.cpp b/examples/quick/demos/maroon/main.cpp
index da2343e444..6866cf8d7b 100644
--- a/examples/quick/demos/maroon/main.cpp
+++ b/examples/quick/demos/maroon/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(maroon)
+DECLARATIVE_EXAMPLE_MAIN(demos/maroon/maroon)
diff --git a/examples/quick/demos/maroon/maroon.pro b/examples/quick/demos/maroon/maroon.pro
index e193927e72..6ca0a2bf16 100644
--- a/examples/quick/demos/maroon/maroon.pro
+++ b/examples/quick/demos/maroon/maroon.pro
@@ -2,8 +2,7 @@ TEMPLATE = app
QT += qml quick
SOURCES += main.cpp
+RESOURCES += maroon.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/maroon
-qml.files = maroon.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/maroon
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/demos/maroon/maroon.qrc b/examples/quick/demos/maroon/maroon.qrc
new file mode 100644
index 0000000000..52c2a4e513
--- /dev/null
+++ b/examples/quick/demos/maroon/maroon.qrc
@@ -0,0 +1,71 @@
+<RCC>
+ <qresource prefix="/demos/maroon">
+ <file>maroon.qml</file>
+ <file>content/BuildButton.qml</file>
+ <file>content/GameCanvas.qml</file>
+ <file>content/GameOverScreen.qml</file>
+ <file>content/InfoBar.qml</file>
+ <file>content/logic.js</file>
+ <file>content/NewGameScreen.qml</file>
+ <file>content/SoundEffect.qml</file>
+ <file>content/audio/bomb-action.wav</file>
+ <file>content/audio/catch-action.wav</file>
+ <file>content/audio/catch.wav</file>
+ <file>content/audio/currency.wav</file>
+ <file>content/audio/factory-action.wav</file>
+ <file>content/audio/melee-action.wav</file>
+ <file>content/audio/projectile-action.wav</file>
+ <file>content/audio/shooter-action.wav</file>
+ <file>content/gfx/background.png</file>
+ <file>content/gfx/bomb-action.png</file>
+ <file>content/gfx/bomb-idle.png</file>
+ <file>content/gfx/bomb.png</file>
+ <file>content/gfx/button-help.png</file>
+ <file>content/gfx/button-play.png</file>
+ <file>content/gfx/catch-action.png</file>
+ <file>content/gfx/catch.png</file>
+ <file>content/gfx/cloud.png</file>
+ <file>content/gfx/currency.png</file>
+ <file>content/gfx/dialog-bomb.png</file>
+ <file>content/gfx/dialog-factory.png</file>
+ <file>content/gfx/dialog-melee.png</file>
+ <file>content/gfx/dialog-pointer.png</file>
+ <file>content/gfx/dialog-shooter.png</file>
+ <file>content/gfx/dialog.png</file>
+ <file>content/gfx/factory-action.png</file>
+ <file>content/gfx/factory-idle.png</file>
+ <file>content/gfx/factory.png</file>
+ <file>content/gfx/grid.png</file>
+ <file>content/gfx/help.png</file>
+ <file>content/gfx/lifes.png</file>
+ <file>content/gfx/logo-bubble.png</file>
+ <file>content/gfx/logo-fish.png</file>
+ <file>content/gfx/logo.png</file>
+ <file>content/gfx/melee-action.png</file>
+ <file>content/gfx/melee-idle.png</file>
+ <file>content/gfx/melee.png</file>
+ <file>content/gfx/mob-idle.png</file>
+ <file>content/gfx/mob.png</file>
+ <file>content/gfx/points.png</file>
+ <file>content/gfx/projectile-action.png</file>
+ <file>content/gfx/projectile.png</file>
+ <file>content/gfx/scores.png</file>
+ <file>content/gfx/shooter-action.png</file>
+ <file>content/gfx/shooter-idle.png</file>
+ <file>content/gfx/shooter.png</file>
+ <file>content/gfx/sunlight.png</file>
+ <file>content/gfx/text-1.png</file>
+ <file>content/gfx/text-2.png</file>
+ <file>content/gfx/text-3.png</file>
+ <file>content/gfx/text-blank.png</file>
+ <file>content/gfx/text-gameover.png</file>
+ <file>content/gfx/text-go.png</file>
+ <file>content/gfx/wave.png</file>
+ <file>content/mobs/MobBase.qml</file>
+ <file>content/towers/Bomb.qml</file>
+ <file>content/towers/Factory.qml</file>
+ <file>content/towers/Melee.qml</file>
+ <file>content/towers/Ranged.qml</file>
+ <file>content/towers/TowerBase.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/demos/samegame/main.cpp b/examples/quick/demos/samegame/main.cpp
index 20bf7fad18..c12804ef1f 100644
--- a/examples/quick/demos/samegame/main.cpp
+++ b/examples/quick/demos/samegame/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(samegame)
+DECLARATIVE_EXAMPLE_MAIN(demos/samegame/samegame)
diff --git a/examples/quick/demos/samegame/samegame.pro b/examples/quick/demos/samegame/samegame.pro
index fec2e53018..59cacd3c8b 100644
--- a/examples/quick/demos/samegame/samegame.pro
+++ b/examples/quick/demos/samegame/samegame.pro
@@ -2,8 +2,7 @@ TEMPLATE = app
QT += qml quick
SOURCES += main.cpp
+RESOURCES += samegame.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/samegame
-qml.files = samegame.qml content settings.js
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/samegame
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/demos/samegame/samegame.qrc b/examples/quick/demos/samegame/samegame.qrc
new file mode 100644
index 0000000000..951b9d116c
--- /dev/null
+++ b/examples/quick/demos/samegame/samegame.qrc
@@ -0,0 +1,72 @@
+<RCC>
+ <qresource prefix="/demos/samegame">
+ <file>samegame.qml</file>
+ <file>settings.js</file>
+ <file>content/gfx/text-p1-won.png</file>
+ <file>content/gfx/background-puzzle.png</file>
+ <file>content/gfx/background.png</file>
+ <file>content/gfx/bar.png</file>
+ <file>content/gfx/blue-puzzle.png</file>
+ <file>content/gfx/blue.png</file>
+ <file>content/gfx/bubble-highscore.png</file>
+ <file>content/gfx/bubble-puzzle.png</file>
+ <file>content/gfx/but-game-1.png</file>
+ <file>content/gfx/but-game-2.png</file>
+ <file>content/gfx/but-game-3.png</file>
+ <file>content/gfx/but-game-4.png</file>
+ <file>content/gfx/but-game-new.png</file>
+ <file>content/gfx/but-menu.png</file>
+ <file>content/gfx/but-puzzle-next.png</file>
+ <file>content/gfx/but-quit.png</file>
+ <file>content/gfx/green-puzzle.png</file>
+ <file>content/gfx/green.png</file>
+ <file>content/gfx/icon-fail.png</file>
+ <file>content/gfx/icon-ok.png</file>
+ <file>content/gfx/icon-time.png</file>
+ <file>content/gfx/logo-a.png</file>
+ <file>content/gfx/logo-e.png</file>
+ <file>content/gfx/logo-g.png</file>
+ <file>content/gfx/logo-m.png</file>
+ <file>content/gfx/logo-s.png</file>
+ <file>content/gfx/logo.png</file>
+ <file>content/gfx/particle-brick.png</file>
+ <file>content/gfx/particle-paint.png</file>
+ <file>content/gfx/particle-smoke.png</file>
+ <file>content/gfx/red-puzzle.png</file>
+ <file>content/gfx/red.png</file>
+ <file>content/gfx/text-highscore-new.png</file>
+ <file>content/gfx/text-highscore.png</file>
+ <file>content/gfx/text-no-winner.png</file>
+ <file>content/gfx/text-p1-go.png</file>
+ <file>content/gfx/text-p1.png</file>
+ <file>content/gfx/text-p2-go.png</file>
+ <file>content/gfx/text-p2-won.png</file>
+ <file>content/gfx/text-p2.png</file>
+ <file>content/gfx/yellow-puzzle.png</file>
+ <file>content/gfx/yellow.png</file>
+ <file>content/levels/level0.qml</file>
+ <file>content/levels/level1.qml</file>
+ <file>content/levels/level2.qml</file>
+ <file>content/levels/level3.qml</file>
+ <file>content/levels/level4.qml</file>
+ <file>content/levels/level5.qml</file>
+ <file>content/levels/level6.qml</file>
+ <file>content/levels/level7.qml</file>
+ <file>content/levels/level8.qml</file>
+ <file>content/levels/level9.qml</file>
+ <file>content/levels/TemplateBase.qml</file>
+ <file>content/SamegameText.qml</file>
+ <file>content/SimpleBlock.qml</file>
+ <file>content/Block.qml</file>
+ <file>content/BlockEmitter.qml</file>
+ <file>content/Button.qml</file>
+ <file>content/GameArea.qml</file>
+ <file>content/LogoAnimation.qml</file>
+ <file>content/MenuEmitter.qml</file>
+ <file>content/PaintEmitter.qml</file>
+ <file>content/PrimaryPack.qml</file>
+ <file>content/PuzzleBlock.qml</file>
+ <file>content/samegame.js</file>
+ <file>content/SmokeText.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/demos/stocqt/main.cpp b/examples/quick/demos/stocqt/main.cpp
index 779d204a24..d893aa5a04 100644
--- a/examples/quick/demos/stocqt/main.cpp
+++ b/examples/quick/demos/stocqt/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(stocqt)
+DECLARATIVE_EXAMPLE_MAIN(demos/stocqt/stocqt)
diff --git a/examples/quick/demos/stocqt/stocqt.pro b/examples/quick/demos/stocqt/stocqt.pro
index f33c4aee01..efe37cb722 100644
--- a/examples/quick/demos/stocqt/stocqt.pro
+++ b/examples/quick/demos/stocqt/stocqt.pro
@@ -2,8 +2,7 @@ TEMPLATE = app
QT += qml quick
SOURCES += main.cpp
+RESOURCES += stocqt.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/stocqt
-qml.files = stocqt.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/stocqt
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/demos/stocqt/stocqt.qrc b/examples/quick/demos/stocqt/stocqt.qrc
new file mode 100644
index 0000000000..b2b1acaf04
--- /dev/null
+++ b/examples/quick/demos/stocqt/stocqt.qrc
@@ -0,0 +1,21 @@
+<RCC>
+ <qresource prefix="/demos/stocqt">
+ <file>stocqt.qml</file>
+ <file>content/Button.qml</file>
+ <file>content/DatePicker.qml</file>
+ <file>content/StockChart.qml</file>
+ <file>content/StockListModel.qml</file>
+ <file>content/StockListView.qml</file>
+ <file>content/StockModel.qml</file>
+ <file>content/StockSettings.qml</file>
+ <file>content/StockView.qml</file>
+ <file>content/images/icon-calendar-anim.png</file>
+ <file>content/images/icon-calendar.png</file>
+ <file>content/images/icon-items.png</file>
+ <file>content/images/icon-settings.png</file>
+ <file>content/images/logo.png</file>
+ <file>content/images/stock-selected.png</file>
+ <file>content/images/wheel-touch.png</file>
+ <file>content/images/wheel.png</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/demos/tweetsearch/main.cpp b/examples/quick/demos/tweetsearch/main.cpp
index 8b1d59679c..6253bc2f6b 100644
--- a/examples/quick/demos/tweetsearch/main.cpp
+++ b/examples/quick/demos/tweetsearch/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(tweetsearch)
+DECLARATIVE_EXAMPLE_MAIN(demos/tweetsearch/tweetsearch)
diff --git a/examples/quick/demos/tweetsearch/tweetsearch.pro b/examples/quick/demos/tweetsearch/tweetsearch.pro
index 887c05af88..b063cc4106 100644
--- a/examples/quick/demos/tweetsearch/tweetsearch.pro
+++ b/examples/quick/demos/tweetsearch/tweetsearch.pro
@@ -2,8 +2,7 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += tweetsearch.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/tweetsearch
-qml.files = tweetsearch.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/demos/tweetsearch
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/demos/tweetsearch/tweetsearch.qrc b/examples/quick/demos/tweetsearch/tweetsearch.qrc
new file mode 100644
index 0000000000..b23c3c5537
--- /dev/null
+++ b/examples/quick/demos/tweetsearch/tweetsearch.qrc
@@ -0,0 +1,19 @@
+<RCC>
+ <qresource prefix="/demos/tweetsearch">
+ <file>tweetsearch.qml</file>
+ <file>content/FlipBar.qml</file>
+ <file>content/LineInput.qml</file>
+ <file>content/ListFooter.qml</file>
+ <file>content/ListHeader.qml</file>
+ <file>content/SearchDelegate.qml</file>
+ <file>content/TweetDelegate.qml</file>
+ <file>content/tweetsearch.js</file>
+ <file>content/TweetsModel.qml</file>
+ <file>content/resources/anonymous.png</file>
+ <file>content/resources/bird-anim-sprites.png</file>
+ <file>content/resources/icon-clear.png</file>
+ <file>content/resources/icon-loading.png</file>
+ <file>content/resources/icon-refresh.png</file>
+ <file>content/resources/icon-search.png</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/draganddrop/draganddrop.pro b/examples/quick/draganddrop/draganddrop.pro
index 451d03ad32..e62b936aa8 100644
--- a/examples/quick/draganddrop/draganddrop.pro
+++ b/examples/quick/draganddrop/draganddrop.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ draganddrop.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/draganddrop
-qml.files = draganddrop.qml tiles views
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/draganddrop
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/draganddrop/draganddrop.qrc b/examples/quick/draganddrop/draganddrop.qrc
new file mode 100644
index 0000000000..6d064f7722
--- /dev/null
+++ b/examples/quick/draganddrop/draganddrop.qrc
@@ -0,0 +1,9 @@
+<RCC>
+ <qresource prefix="/draganddrop">
+ <file>draganddrop.qml</file>
+ <file>tiles/DragTile.qml</file>
+ <file>tiles/DropTile.qml</file>
+ <file>tiles/tiles.qml</file>
+ <file>views/gridview.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/draganddrop/main.cpp b/examples/quick/draganddrop/main.cpp
index 7a7adf2391..d9bf43695a 100644
--- a/examples/quick/draganddrop/main.cpp
+++ b/examples/quick/draganddrop/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(draganddrop)
+DECLARATIVE_EXAMPLE_MAIN(draganddrop/draganddrop)
diff --git a/examples/quick/imageelements/imageelements.pro b/examples/quick/imageelements/imageelements.pro
index 281b44f112..4d1c6f0a95 100644
--- a/examples/quick/imageelements/imageelements.pro
+++ b/examples/quick/imageelements/imageelements.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ imageelements.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/imageelements
-qml.files = *.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/imageelements
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/imageelements/imageelements.qrc b/examples/quick/imageelements/imageelements.qrc
new file mode 100644
index 0000000000..ef8a9e52cb
--- /dev/null
+++ b/examples/quick/imageelements/imageelements.qrc
@@ -0,0 +1,23 @@
+<RCC>
+ <qresource prefix="/imageelements">
+ <file>content/arrow.png</file>
+ <file>content/BearSheet.png</file>
+ <file>content/BorderImageSelector.qml</file>
+ <file>content/bw.png</file>
+ <file>content/colors-round.sci</file>
+ <file>content/colors-stretch.sci</file>
+ <file>content/colors.png</file>
+ <file>content/ImageCell.qml</file>
+ <file>content/MyBorderImage.qml</file>
+ <file>content/qt-logo.png</file>
+ <file>content/shadow.png</file>
+ <file>content/ShadowRectangle.qml</file>
+ <file>content/speaker.png</file>
+ <file>imageelements.qml</file>
+ <file>animatedsprite.qml</file>
+ <file>borderimage.qml</file>
+ <file>image.qml</file>
+ <file>shadows.qml</file>
+ <file>spritesequence.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/imageelements/main.cpp b/examples/quick/imageelements/main.cpp
index aa624e2229..ab7d5215fa 100644
--- a/examples/quick/imageelements/main.cpp
+++ b/examples/quick/imageelements/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(imageelements)
+DECLARATIVE_EXAMPLE_MAIN(imageelements/imageelements)
diff --git a/examples/quick/keyinteraction/keyinteraction.pro b/examples/quick/keyinteraction/keyinteraction.pro
index a0c65be2d1..edc157f028 100644
--- a/examples/quick/keyinteraction/keyinteraction.pro
+++ b/examples/quick/keyinteraction/keyinteraction.pro
@@ -2,8 +2,7 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += keyinteraction.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/keyinteraction
-qml.files = keyinteraction.qml focus
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/keyinteraction
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/keyinteraction/keyinteraction.qrc b/examples/quick/keyinteraction/keyinteraction.qrc
new file mode 100644
index 0000000000..21bde4472c
--- /dev/null
+++ b/examples/quick/keyinteraction/keyinteraction.qrc
@@ -0,0 +1,12 @@
+<RCC>
+ <qresource prefix="/keyinteraction">
+ <file>keyinteraction.qml</file>
+ <file>focus/focus.qml</file>
+ <file>focus/Core/images/arrow.png</file>
+ <file>focus/Core/images/qt-logo.png</file>
+ <file>focus/Core/ContextMenu.qml</file>
+ <file>focus/Core/GridMenu.qml</file>
+ <file>focus/Core/ListMenu.qml</file>
+ <file>focus/Core/ListViewDelegate.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/keyinteraction/main.cpp b/examples/quick/keyinteraction/main.cpp
index e82e1d86cd..4f226e715a 100644
--- a/examples/quick/keyinteraction/main.cpp
+++ b/examples/quick/keyinteraction/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(keyinteraction)
+DECLARATIVE_EXAMPLE_MAIN(keyinteraction/keyinteraction)
diff --git a/examples/quick/localstorage/localstorage/localstorage.pro b/examples/quick/localstorage/localstorage/localstorage.pro
index ef90b63546..80c306fcc2 100644
--- a/examples/quick/localstorage/localstorage/localstorage.pro
+++ b/examples/quick/localstorage/localstorage/localstorage.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ localstorage.qrc \
+ ../../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/localstorage/localstorage
-qml.files = localstorage.qml hello.qml
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/localstorage/localstorage
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/localstorage/localstorage/localstorage.qrc b/examples/quick/localstorage/localstorage/localstorage.qrc
new file mode 100644
index 0000000000..09ac2de033
--- /dev/null
+++ b/examples/quick/localstorage/localstorage/localstorage.qrc
@@ -0,0 +1,6 @@
+<RCC>
+ <qresource prefix="/localstorage/localstorage">
+ <file>hello.qml</file>
+ <file>localstorage.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/localstorage/localstorage/main.cpp b/examples/quick/localstorage/localstorage/main.cpp
index 0f69fb7fdb..8433dbe55e 100644
--- a/examples/quick/localstorage/localstorage/main.cpp
+++ b/examples/quick/localstorage/localstorage/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(localstorage)
+DECLARATIVE_EXAMPLE_MAIN(localstorage/localstorage/localstorage)
diff --git a/examples/quick/mousearea/main.cpp b/examples/quick/mousearea/main.cpp
index 34e0b3b396..f07341c4ca 100644
--- a/examples/quick/mousearea/main.cpp
+++ b/examples/quick/mousearea/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(mousearea)
+DECLARATIVE_EXAMPLE_MAIN(mousearea/mousearea)
diff --git a/examples/quick/mousearea/mousearea.pro b/examples/quick/mousearea/mousearea.pro
index eba203ba18..782082924e 100644
--- a/examples/quick/mousearea/mousearea.pro
+++ b/examples/quick/mousearea/mousearea.pro
@@ -2,11 +2,10 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += mousearea.qrc
EXAMPLE_FILES = \
mousearea-wheel-example.qml
target.path = $$[QT_INSTALL_EXAMPLES]/quick/mousearea
-qml.files = mousearea.qml
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/mousearea
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/mousearea/mousearea.qrc b/examples/quick/mousearea/mousearea.qrc
new file mode 100644
index 0000000000..23d30aa37c
--- /dev/null
+++ b/examples/quick/mousearea/mousearea.qrc
@@ -0,0 +1,6 @@
+<RCC>
+ <qresource prefix="/mousearea">
+ <file>mousearea.qml</file>
+ <file>mousearea-wheel-example.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/particles/affectors/affectors.pro b/examples/quick/particles/affectors/affectors.pro
index 9d7c3de059..673ccfbb81 100644
--- a/examples/quick/particles/affectors/affectors.pro
+++ b/examples/quick/particles/affectors/affectors.pro
@@ -2,8 +2,10 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ affectors.qrc \
+ ../images.qrc \
+ ../../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/affectors
-qml.files = affectors.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/affectors
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/particles/affectors/affectors.qrc b/examples/quick/particles/affectors/affectors.qrc
new file mode 100644
index 0000000000..c1d797e4d8
--- /dev/null
+++ b/examples/quick/particles/affectors/affectors.qrc
@@ -0,0 +1,16 @@
+<RCC>
+ <qresource prefix="/particles/affectors">
+ <file>affectors.qml</file>
+ <file>content/age.qml</file>
+ <file>content/attractor.qml</file>
+ <file>content/customaffector.qml</file>
+ <file>content/friction.qml</file>
+ <file>content/gravity.qml</file>
+ <file>content/GreyButton.qml</file>
+ <file>content/groupgoal.qml</file>
+ <file>content/move.qml</file>
+ <file>content/spritegoal.qml</file>
+ <file>content/turbulence.qml</file>
+ <file>content/wander.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/particles/affectors/main.cpp b/examples/quick/particles/affectors/main.cpp
index 358fcb4d8d..76d79debc2 100644
--- a/examples/quick/particles/affectors/main.cpp
+++ b/examples/quick/particles/affectors/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(affectors)
+DECLARATIVE_EXAMPLE_MAIN(particles/affectors/affectors)
diff --git a/examples/quick/particles/customparticle/customparticle.pro b/examples/quick/particles/customparticle/customparticle.pro
index 77db1a6aab..66a6895d00 100644
--- a/examples/quick/particles/customparticle/customparticle.pro
+++ b/examples/quick/particles/customparticle/customparticle.pro
@@ -2,8 +2,11 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ customparticle.qrc \
+ ../images.qrc \
+ ../../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/customparticle
-qml.files = customparticle.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/customparticle
-INSTALLS += target qml
+INSTALLS += target
+
diff --git a/examples/quick/particles/customparticle/customparticle.qrc b/examples/quick/particles/customparticle/customparticle.qrc
new file mode 100644
index 0000000000..8a4e087a12
--- /dev/null
+++ b/examples/quick/particles/customparticle/customparticle.qrc
@@ -0,0 +1,8 @@
+<RCC>
+ <qresource prefix="/particles/customparticle">
+ <file>customparticle.qml</file>
+ <file>content/blurparticles.qml</file>
+ <file>content/fragmentshader.qml</file>
+ <file>content/imagecolors.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/particles/customparticle/main.cpp b/examples/quick/particles/customparticle/main.cpp
index ec5619c6f0..c873710470 100644
--- a/examples/quick/particles/customparticle/main.cpp
+++ b/examples/quick/particles/customparticle/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(customparticle)
+DECLARATIVE_EXAMPLE_MAIN(particles/customparticle/customparticle)
diff --git a/examples/quick/particles/emitters/emitters.pro b/examples/quick/particles/emitters/emitters.pro
index ea2e0d15ba..c5d8b8b0c9 100644
--- a/examples/quick/particles/emitters/emitters.pro
+++ b/examples/quick/particles/emitters/emitters.pro
@@ -2,8 +2,10 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ emitters.qrc \
+ ../images.qrc \
+ ../../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/emitters
-qml.files = emitters.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/emitters
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/particles/emitters/emitters.qrc b/examples/quick/particles/emitters/emitters.qrc
new file mode 100644
index 0000000000..708c8683f0
--- /dev/null
+++ b/examples/quick/particles/emitters/emitters.qrc
@@ -0,0 +1,12 @@
+<RCC>
+ <qresource prefix="/particles/emitters">
+ <file>emitters.qml</file>
+ <file>content/burstandpulse.qml</file>
+ <file>content/customemitter.qml</file>
+ <file>content/emitmask.qml</file>
+ <file>content/maximumemitted.qml</file>
+ <file>content/shapeanddirection.qml</file>
+ <file>content/trailemitter.qml</file>
+ <file>content/velocityfrommotion.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/particles/emitters/main.cpp b/examples/quick/particles/emitters/main.cpp
index 01aff50ea3..579e0d0cb8 100644
--- a/examples/quick/particles/emitters/main.cpp
+++ b/examples/quick/particles/emitters/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(emitters)
+DECLARATIVE_EXAMPLE_MAIN(particles/emitters/emitters)
diff --git a/examples/quick/particles/imageparticle/imageparticle.pro b/examples/quick/particles/imageparticle/imageparticle.pro
index 94ed5fc7c3..e639c7423a 100644
--- a/examples/quick/particles/imageparticle/imageparticle.pro
+++ b/examples/quick/particles/imageparticle/imageparticle.pro
@@ -2,8 +2,10 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ imageparticle.qrc \
+ ../images.qrc \
+ ../../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/imageparticle
-qml.files = imageparticle.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/particles/imageparticle
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/particles/imageparticle/imageparticle.qrc b/examples/quick/particles/imageparticle/imageparticle.qrc
new file mode 100644
index 0000000000..d9e4115e3e
--- /dev/null
+++ b/examples/quick/particles/imageparticle/imageparticle.qrc
@@ -0,0 +1,12 @@
+<RCC>
+ <qresource prefix="/particles/imageparticle">
+ <file>imageparticle.qml</file>
+ <file>content/allatonce.qml</file>
+ <file>content/colored.qml</file>
+ <file>content/colortable.qml</file>
+ <file>content/deformation.qml</file>
+ <file>content/rotation.qml</file>
+ <file>content/sharing.qml</file>
+ <file>content/sprites.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/particles/imageparticle/main.cpp b/examples/quick/particles/imageparticle/main.cpp
index 081aec03d7..576182ebe5 100644
--- a/examples/quick/particles/imageparticle/main.cpp
+++ b/examples/quick/particles/imageparticle/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(imageparticle)
+DECLARATIVE_EXAMPLE_MAIN(particles/imageparticle/imageparticle)
diff --git a/examples/quick/particles/images.qrc b/examples/quick/particles/images.qrc
new file mode 100644
index 0000000000..9f284a087d
--- /dev/null
+++ b/examples/quick/particles/images.qrc
@@ -0,0 +1,38 @@
+<RCC>
+ <qresource prefix="/particles">
+ <file>images/_explo.png</file>
+ <file>images/backgroundLeaves.jpg</file>
+ <file>images/bear_tiles.png</file>
+ <file>images/candle.png</file>
+ <file>images/colortable.png</file>
+ <file>images/finalfrontier.png</file>
+ <file>images/flower.png</file>
+ <file>images/matchmask.png</file>
+ <file>images/meteor_explo.png</file>
+ <file>images/meteor.png</file>
+ <file>images/meteors.png</file>
+ <file>images/nullRock.png</file>
+ <file>images/particle.png</file>
+ <file>images/particle2.png</file>
+ <file>images/particle3.png</file>
+ <file>images/particle4.png</file>
+ <file>images/particleA.png</file>
+ <file>images/portal_bg.png</file>
+ <file>images/realLeaf1.png</file>
+ <file>images/realLeaf2.png</file>
+ <file>images/realLeaf3.png</file>
+ <file>images/realLeaf4.png</file>
+ <file>images/rocket.png</file>
+ <file>images/rocket2.png</file>
+ <file>images/sizeInOut.png</file>
+ <file>images/snowflake.png</file>
+ <file>images/sparkleSize.png</file>
+ <file>images/star.png</file>
+ <file>images/starfish_0.png</file>
+ <file>images/starfish_1.png</file>
+ <file>images/starfish_2.png</file>
+ <file>images/starfish_3.png</file>
+ <file>images/starfish_4.png</file>
+ <file>images/starfish_mask.png</file>
+ </qresource>
+</RCC>
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>
diff --git a/examples/quick/positioners/main.cpp b/examples/quick/positioners/main.cpp
index 4ee4c82c56..5554af68c6 100644
--- a/examples/quick/positioners/main.cpp
+++ b/examples/quick/positioners/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(positioners)
+DECLARATIVE_EXAMPLE_MAIN(positioners/positioners)
diff --git a/examples/quick/positioners/positioners.pro b/examples/quick/positioners/positioners.pro
index 1a7622d0bc..a754d2a29a 100644
--- a/examples/quick/positioners/positioners.pro
+++ b/examples/quick/positioners/positioners.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ positioners.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/positioners
-qml.files = positioners.qml positioners-transitions.qml positioners-attachedproperties.qml
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/positioners
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/positioners/positioners.qrc b/examples/quick/positioners/positioners.qrc
new file mode 100644
index 0000000000..7025a6f8d8
--- /dev/null
+++ b/examples/quick/positioners/positioners.qrc
@@ -0,0 +1,7 @@
+<RCC>
+ <qresource prefix="/positioners">
+ <file>positioners.qml</file>
+ <file>positioners-attachedproperties.qml</file>
+ <file>positioners-transitions.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/righttoleft/main.cpp b/examples/quick/righttoleft/main.cpp
index e1d102cfe3..c008e2c85a 100644
--- a/examples/quick/righttoleft/main.cpp
+++ b/examples/quick/righttoleft/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(righttoleft)
+DECLARATIVE_EXAMPLE_MAIN(righttoleft/righttoleft)
diff --git a/examples/quick/righttoleft/righttoleft.pro b/examples/quick/righttoleft/righttoleft.pro
index e71030e196..248564e07f 100644
--- a/examples/quick/righttoleft/righttoleft.pro
+++ b/examples/quick/righttoleft/righttoleft.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ righttoleft.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/righttoleft
-qml.files = righttoleft.qml layoutdirection layoutmirroring textalignment
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/righttoleft
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/righttoleft/righttoleft.qrc b/examples/quick/righttoleft/righttoleft.qrc
new file mode 100644
index 0000000000..1d9f068a1e
--- /dev/null
+++ b/examples/quick/righttoleft/righttoleft.qrc
@@ -0,0 +1,8 @@
+<RCC>
+ <qresource prefix="/righttoleft">
+ <file>righttoleft.qml</file>
+ <file>layoutdirection/layoutdirection.qml</file>
+ <file>layoutmirroring/layoutmirroring.qml</file>
+ <file>textalignment/textalignment.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/scenegraph/customgeometry/customgeometry.pro b/examples/quick/scenegraph/customgeometry/customgeometry.pro
index 8044c5c034..17c30fc560 100644
--- a/examples/quick/scenegraph/customgeometry/customgeometry.pro
+++ b/examples/quick/scenegraph/customgeometry/customgeometry.pro
@@ -8,8 +8,7 @@ SOURCES += \
HEADERS += \
beziercurve.h
-target.path = $$[QT_INSTALL_EXAMPLES]/quick/scenegraph/customgeometry
-qml.files = main.qml
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/scenegraph/customgeometry
+RESOURCES += customgeometry.qrc
-INSTALLS += target qml
+target.path = $$[QT_INSTALL_EXAMPLES]/quick/scenegraph/customgeometry
+INSTALLS += target
diff --git a/examples/quick/scenegraph/customgeometry/customgeometry.qrc b/examples/quick/scenegraph/customgeometry/customgeometry.qrc
new file mode 100644
index 0000000000..39080c5414
--- /dev/null
+++ b/examples/quick/scenegraph/customgeometry/customgeometry.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/scenegraph/customgeometry">
+ <file>main.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/scenegraph/customgeometry/main.cpp b/examples/quick/scenegraph/customgeometry/main.cpp
index 6cb2b0e153..ea699c1c36 100644
--- a/examples/quick/scenegraph/customgeometry/main.cpp
+++ b/examples/quick/scenegraph/customgeometry/main.cpp
@@ -52,7 +52,7 @@ int main(int argc, char **argv)
qmlRegisterType<BezierCurve>("CustomGeometry", 1, 0, "BezierCurve");
QQuickView view;
- view.setSource(QUrl("main.qml"));
+ view.setSource(QUrl("qrc:///scenegraph/customgeometry/main.qml"));
view.show();
app.exec();
diff --git a/examples/quick/scenegraph/openglunderqml/main.cpp b/examples/quick/scenegraph/openglunderqml/main.cpp
index c5a68e83b1..adc389cb4c 100644
--- a/examples/quick/scenegraph/openglunderqml/main.cpp
+++ b/examples/quick/scenegraph/openglunderqml/main.cpp
@@ -53,7 +53,7 @@ int main(int argc, char **argv)
qmlRegisterType<Squircle>("OpenGLUnderQML", 1, 0, "Squircle");
QQuickView view;
- view.setSource(QUrl("main.qml"));
+ view.setSource(QUrl("qrc:///scenegraph/openglunderqml/main.qml"));
view.show();
return app.exec();
diff --git a/examples/quick/scenegraph/openglunderqml/openglunderqml.pro b/examples/quick/scenegraph/openglunderqml/openglunderqml.pro
index f86dd5f5f3..54558ce9e9 100644
--- a/examples/quick/scenegraph/openglunderqml/openglunderqml.pro
+++ b/examples/quick/scenegraph/openglunderqml/openglunderqml.pro
@@ -2,8 +2,7 @@ QT += qml quick
HEADERS += squircle.h
SOURCES += squircle.cpp main.cpp
+RESOURCES += openglunderqml.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/scenegraph/openglunderqml
-qml.files = main.qml
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/scenegraph/openglunderqml
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/scenegraph/openglunderqml/openglunderqml.qrc b/examples/quick/scenegraph/openglunderqml/openglunderqml.qrc
new file mode 100644
index 0000000000..d166ea9d37
--- /dev/null
+++ b/examples/quick/scenegraph/openglunderqml/openglunderqml.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/scenegraph/openglunderqml">
+ <file>main.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/scenegraph/simplematerial/simplematerial.cpp b/examples/quick/scenegraph/simplematerial/simplematerial.cpp
index de5ae9ebda..b7bea08260 100644
--- a/examples/quick/scenegraph/simplematerial/simplematerial.cpp
+++ b/examples/quick/scenegraph/simplematerial/simplematerial.cpp
@@ -185,7 +185,7 @@ int main(int argc, char **argv)
qmlRegisterType<Item>("SimpleMaterial", 1, 0, "SimpleMaterialItem");
QQuickView view;
- view.setSource(QUrl("main.qml"));
+ view.setSource(QUrl("qrc:///scenegraph/simplematerial/main.qml"));
view.show();
return app.exec();
diff --git a/examples/quick/scenegraph/simplematerial/simplematerial.pro b/examples/quick/scenegraph/simplematerial/simplematerial.pro
index ae4fb0fdd0..6ae935f357 100644
--- a/examples/quick/scenegraph/simplematerial/simplematerial.pro
+++ b/examples/quick/scenegraph/simplematerial/simplematerial.pro
@@ -3,6 +3,7 @@ QT += quick
SOURCES += \
simplematerial.cpp
+RESOURCES += simplematerial.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/scenegraph/simplematerial
qml.files = main.qml
diff --git a/examples/quick/scenegraph/simplematerial/simplematerial.qrc b/examples/quick/scenegraph/simplematerial/simplematerial.qrc
new file mode 100644
index 0000000000..4cc1eaafe4
--- /dev/null
+++ b/examples/quick/scenegraph/simplematerial/simplematerial.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/scenegraph/simplematerial">
+ <file>main.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/shadereffects/main.cpp b/examples/quick/shadereffects/main.cpp
index 2bb3224bd1..c40c78099e 100644
--- a/examples/quick/shadereffects/main.cpp
+++ b/examples/quick/shadereffects/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(shadereffects)
+DECLARATIVE_EXAMPLE_MAIN(shadereffects/shadereffects)
diff --git a/examples/quick/shadereffects/shadereffects.pro b/examples/quick/shadereffects/shadereffects.pro
index 265cb726e2..088b4a3f4f 100644
--- a/examples/quick/shadereffects/shadereffects.pro
+++ b/examples/quick/shadereffects/shadereffects.pro
@@ -2,8 +2,7 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += shadereffects.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/shadereffects
-qml.files = shadereffects.qml content
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/shadereffects
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/shadereffects/shadereffects.qrc b/examples/quick/shadereffects/shadereffects.qrc
new file mode 100644
index 0000000000..ff296a0155
--- /dev/null
+++ b/examples/quick/shadereffects/shadereffects.qrc
@@ -0,0 +1,8 @@
+<RCC>
+ <qresource prefix="/shadereffects">
+ <file>shadereffects.qml</file>
+ <file>content/face-smile.png</file>
+ <file>content/qt-logo.png</file>
+ <file>content/Slider.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/shared/quick_shared.qrc b/examples/quick/shared/quick_shared.qrc
new file mode 100644
index 0000000000..9fc114dc89
--- /dev/null
+++ b/examples/quick/shared/quick_shared.qrc
@@ -0,0 +1,8 @@
+<RCC>
+ <qresource prefix="/quick/shared">
+ <file>LauncherList.qml</file>
+ <file>SimpleLauncherDelegate.qml</file>
+ <file>Button.qml</file>
+ <file>images/back.png</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/shared/shared.h b/examples/quick/shared/shared.h
index 7fd2f08a40..a7072daa89 100644
--- a/examples/quick/shared/shared.h
+++ b/examples/quick/shared/shared.h
@@ -45,32 +45,8 @@
{\
QGuiApplication app(argc,argv);\
QQuickView view;\
- QDir directory(QCoreApplication::applicationDirPath());\
- if (QGuiApplication::platformName() == QLatin1String("windows")) {\
- if (directory.absolutePath().endsWith("/debug", Qt::CaseInsensitive)\
- || directory.absolutePath().endsWith("/release", Qt::CaseInsensitive))\
- if (!directory.cdUp()) {\
- qWarning("Could not change to parent directory of '%s'",\
- qPrintable(QDir::toNativeSeparators(directory.absolutePath())));\
- return -1;\
- }\
- } else if (QGuiApplication::platformName() == QLatin1String("cocoa")) {\
- if (directory.absolutePath().endsWith(#NAME".app/Contents/MacOS"))\
- for (int i = 0; i < 3; ++i) {\
- if (!directory.cdUp()) {\
- qWarning("Could not change to parent directory of '%s'",\
- qPrintable(QDir::toNativeSeparators(directory.absolutePath())));\
- return -1;\
- }\
- }\
- }\
- const QString fileName(directory.absolutePath() + "/" #NAME ".qml");\
- if (!QFile::exists(fileName)) {\
- qWarning("Could not find file '%s'", qPrintable(QDir::toNativeSeparators(fileName)));\
- return -1;\
- }\
view.connect(view.engine(), SIGNAL(quit()), &app, SLOT(quit()));\
- view.setSource(QUrl::fromLocalFile(fileName)); \
+ view.setSource(QUrl("qrc:///" #NAME ".qml")); \
if (QGuiApplication::platformName() == QLatin1String("qnx") || \
QGuiApplication::platformName() == QLatin1String("eglfs")) {\
view.setResizeMode(QQuickView::SizeRootObjectToView);\
diff --git a/examples/quick/shared/shared.qrc b/examples/quick/shared/shared.qrc
new file mode 100644
index 0000000000..4ac856e66b
--- /dev/null
+++ b/examples/quick/shared/shared.qrc
@@ -0,0 +1,8 @@
+<RCC>
+ <qresource prefix="/shared">
+ <file>LauncherList.qml</file>
+ <file>SimpleLauncherDelegate.qml</file>
+ <file>Button.qml</file>
+ <file>images/back.png</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/text/main.cpp b/examples/quick/text/main.cpp
index 9b3c62657b..b8f927d81e 100644
--- a/examples/quick/text/main.cpp
+++ b/examples/quick/text/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(text)
+DECLARATIVE_EXAMPLE_MAIN(text/text)
diff --git a/examples/quick/text/text.pro b/examples/quick/text/text.pro
index 2f78548d05..733a99367b 100644
--- a/examples/quick/text/text.pro
+++ b/examples/quick/text/text.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ text.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/text
-qml.files = fonts imgtag styledtext-layout.qml text.qml textselection
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/text
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/text/text.qrc b/examples/quick/text/text.qrc
new file mode 100644
index 0000000000..f0d21627ad
--- /dev/null
+++ b/examples/quick/text/text.qrc
@@ -0,0 +1,24 @@
+<RCC>
+ <qresource prefix="/text">
+ <file>text.qml</file>
+ <file>fonts/availableFonts.qml</file>
+ <file>fonts/banner.qml</file>
+ <file>fonts/fonts.qml</file>
+ <file>fonts/hello.qml</file>
+ <file>fonts/content/fonts/tarzeau_ocr_a.ttf</file>
+ <file>imgtag/imgtag.qml</file>
+ <file>imgtag/images/face-sad.png</file>
+ <file>imgtag/images/face-smile-big.png</file>
+ <file>imgtag/images/face-smile.png</file>
+ <file>imgtag/images/heart200.png</file>
+ <file>imgtag/images/qtlogo.png</file>
+ <file>imgtag/images/starfish_2.png</file>
+ <file>textselection/textselection.qml</file>
+ <file>textselection/pics/endHandle.png</file>
+ <file>textselection/pics/endHandle.sci</file>
+ <file>textselection/pics/startHandle.png</file>
+ <file>textselection/pics/startHandle.sci</file>
+ <file>styledtext-layout.qml</file>
+ <file>imgtag/TextWithImage.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/threading/main.cpp b/examples/quick/threading/main.cpp
index 47ea0b5709..7e4e485529 100644
--- a/examples/quick/threading/main.cpp
+++ b/examples/quick/threading/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(threading)
+DECLARATIVE_EXAMPLE_MAIN(threading/threading)
diff --git a/examples/quick/threading/threading.pro b/examples/quick/threading/threading.pro
index fa5488a47e..cd9ed25e0c 100644
--- a/examples/quick/threading/threading.pro
+++ b/examples/quick/threading/threading.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ threading.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/threading
-qml.files = threading.qml threadedlistmodel workerscript
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/threading
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/threading/threading.qrc b/examples/quick/threading/threading.qrc
new file mode 100644
index 0000000000..6d15b7ef71
--- /dev/null
+++ b/examples/quick/threading/threading.qrc
@@ -0,0 +1,10 @@
+<RCC>
+ <qresource prefix="/threading">
+ <file>threading.qml</file>
+ <file>threadedlistmodel/timedisplay.qml</file>
+ <file>threadedlistmodel/dataloader.js</file>
+ <file>workerscript/Spinner.qml</file>
+ <file>workerscript/workerscript.js</file>
+ <file>workerscript/workerscript.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/touchinteraction/main.cpp b/examples/quick/touchinteraction/main.cpp
index aac3175743..6db041ef7d 100644
--- a/examples/quick/touchinteraction/main.cpp
+++ b/examples/quick/touchinteraction/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(touchinteraction)
+DECLARATIVE_EXAMPLE_MAIN(touchinteraction/touchinteraction)
diff --git a/examples/quick/touchinteraction/touchinteraction.pro b/examples/quick/touchinteraction/touchinteraction.pro
index 949651c9cf..0ae0a41cce 100644
--- a/examples/quick/touchinteraction/touchinteraction.pro
+++ b/examples/quick/touchinteraction/touchinteraction.pro
@@ -2,8 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ touchinteraction.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/touchinteraction
-qml.files = flickable multipointtouch pincharea touchinteraction.qml
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/touchinteraction
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/touchinteraction/touchinteraction.qrc b/examples/quick/touchinteraction/touchinteraction.qrc
new file mode 100644
index 0000000000..6cec506a0f
--- /dev/null
+++ b/examples/quick/touchinteraction/touchinteraction.qrc
@@ -0,0 +1,27 @@
+<RCC>
+ <qresource prefix="/touchinteraction">
+ <file>touchinteraction.qml</file>
+ <file>flickable/basic-flickable.qml</file>
+ <file>flickable/corkboards.qml</file>
+ <file>flickable/content/cork.jpg</file>
+ <file>flickable/content/note-yellow.png</file>
+ <file>flickable/content/Panel.qml</file>
+ <file>flickable/content/tack.png</file>
+ <file>multipointtouch/bearwhack.qml</file>
+ <file>multipointtouch/multiflame.qml</file>
+ <file>multipointtouch/content/AugmentedTouchPoint.qml</file>
+ <file>multipointtouch/content/Bear0.png</file>
+ <file>multipointtouch/content/Bear1.png</file>
+ <file>multipointtouch/content/Bear2.png</file>
+ <file>multipointtouch/content/Bear3.png</file>
+ <file>multipointtouch/content/BearB.png</file>
+ <file>multipointtouch/content/BearWhackParticleSystem.qml</file>
+ <file>multipointtouch/content/blur-circle.png</file>
+ <file>multipointtouch/content/blur-circle3.png</file>
+ <file>multipointtouch/content/heart-blur.png</file>
+ <file>multipointtouch/content/ParticleFlame.qml</file>
+ <file>multipointtouch/content/title.png</file>
+ <file>pincharea/flickresize.qml</file>
+ <file>pincharea/qt-logo.jpg</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/views/main.cpp b/examples/quick/views/main.cpp
index 3d41683035..52704fcd2b 100644
--- a/examples/quick/views/main.cpp
+++ b/examples/quick/views/main.cpp
@@ -38,4 +38,4 @@
**
****************************************************************************/
#include "../shared/shared.h"
-DECLARATIVE_EXAMPLE_MAIN(views)
+DECLARATIVE_EXAMPLE_MAIN(views/views)
diff --git a/examples/quick/views/views.pro b/examples/quick/views/views.pro
index b424ba66f2..a79126a838 100644
--- a/examples/quick/views/views.pro
+++ b/examples/quick/views/views.pro
@@ -2,16 +2,9 @@ TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
+RESOURCES += \
+ views.qrc \
+ ../shared/shared.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/views
-qml.files = \
- views.qml \
- gridview \
- listview \
- package \
- parallax \
- pathview \
- visualdatamodel \
- visualitemmodel
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/views
-INSTALLS += target qml
+INSTALLS += target
diff --git a/examples/quick/views/views.qrc b/examples/quick/views/views.qrc
new file mode 100644
index 0000000000..e35f128202
--- /dev/null
+++ b/examples/quick/views/views.qrc
@@ -0,0 +1,69 @@
+<RCC>
+ <qresource prefix="/views">
+ <file>gridview/gridview-example.qml</file>
+ <file>gridview/pics/AddressBook_48.png</file>
+ <file>gridview/pics/AudioPlayer_48.png</file>
+ <file>gridview/pics/Camera_48.png</file>
+ <file>gridview/pics/DateBook_48.png</file>
+ <file>gridview/pics/EMail_48.png</file>
+ <file>gridview/pics/TodoList_48.png</file>
+ <file>gridview/pics/VideoPlayer_48.png</file>
+ <file>listview/dynamiclist.qml</file>
+ <file>listview/expandingdelegates.qml</file>
+ <file>listview/highlight.qml</file>
+ <file>listview/highlightranges.qml</file>
+ <file>listview/sections.qml</file>
+ <file>listview/content/PetsModel.qml</file>
+ <file>listview/content/PressAndHoldButton.qml</file>
+ <file>listview/content/RecipesModel.qml</file>
+ <file>listview/content/SmallText.qml</file>
+ <file>listview/content/TextButton.qml</file>
+ <file>listview/content/ToggleButton.qml</file>
+ <file>listview/content/pics/arrow-down.png</file>
+ <file>listview/content/pics/arrow-up.png</file>
+ <file>listview/content/pics/fruit-salad.jpg</file>
+ <file>listview/content/pics/hamburger.jpg</file>
+ <file>listview/content/pics/lemonade.jpg</file>
+ <file>listview/content/pics/list-delete.png</file>
+ <file>listview/content/pics/minus-sign.png</file>
+ <file>listview/content/pics/moreDown.png</file>
+ <file>listview/content/pics/moreUp.png</file>
+ <file>listview/content/pics/pancakes.jpg</file>
+ <file>listview/content/pics/plus-sign.png</file>
+ <file>listview/content/pics/vegetable-soup.jpg</file>
+ <file>package/Delegate.qml</file>
+ <file>package/view.qml</file>
+ <file>parallax/parallax.qml</file>
+ <file>parallax/content/Smiley.qml</file>
+ <file>parallax/content/background.png</file>
+ <file>parallax/content/center.png</file>
+ <file>parallax/content/clock-night.png</file>
+ <file>parallax/content/clock.png</file>
+ <file>parallax/content/Clock.qml</file>
+ <file>parallax/content/hour.png</file>
+ <file>parallax/content/minute.png</file>
+ <file>parallax/content/ParallaxView.qml</file>
+ <file>parallax/content/quit.png</file>
+ <file>parallax/content/QuitButton.qml</file>
+ <file>parallax/content/second.png</file>
+ <file>parallax/content/pics/background.jpg</file>
+ <file>parallax/content/pics/face-smile.png</file>
+ <file>parallax/content/pics/home-page.png</file>
+ <file>parallax/content/pics/home-page.svg</file>
+ <file>parallax/content/pics/shadow.png</file>
+ <file>parallax/content/pics/yast-joystick.png</file>
+ <file>parallax/content/pics/yast-wol.png</file>
+ <file>pathview/pathview-example.qml</file>
+ <file>pathview/pics/AddressBook_48.png</file>
+ <file>pathview/pics/AudioPlayer_48.png</file>
+ <file>pathview/pics/Camera_48.png</file>
+ <file>pathview/pics/DateBook_48.png</file>
+ <file>pathview/pics/EMail_48.png</file>
+ <file>pathview/pics/TodoList_48.png</file>
+ <file>pathview/pics/VideoPlayer_48.png</file>
+ <file>visualdatamodel/slideshow.qml</file>
+ <file>visualdatamodel/dragselection.qml</file>
+ <file>visualitemmodel/visualitemmodel.qml</file>
+ <file>views.qml</file>
+ </qresource>
+</RCC>
diff --git a/examples/quick/window/window/window.cpp b/examples/quick/window/window/window.cpp
index c9e6e90997..619e275f75 100644
--- a/examples/quick/window/window/window.cpp
+++ b/examples/quick/window/window/window.cpp
@@ -49,7 +49,7 @@ int main(int argc, char* argv[])
QGuiApplication app(argc, argv);
QQmlEngine engine;
QQmlComponent component(&engine);
- component.loadUrl(QUrl::fromLocalFile("Window.qml"));
+ component.loadUrl(QUrl("qrc:///window/window/Window.qml"));
if ( component.isReady() )
component.create();
else
diff --git a/examples/quick/window/window/window.pro b/examples/quick/window/window/window.pro
index e8a022361f..6df7ce8849 100644
--- a/examples/quick/window/window/window.pro
+++ b/examples/quick/window/window/window.pro
@@ -3,9 +3,7 @@ CONFIG += qt
QT += qml
SOURCES += window.cpp
+RESOURCES += window.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/quick/window/window
-qml.files = Window.qml nogui.qml standalone.qml twowindows.qml
-qml.path = $$[QT_INSTALL_EXAMPLES]/quick/window/window
-
-INSTALLS = target qml
+INSTALLS = target
diff --git a/examples/quick/window/window/window.qrc b/examples/quick/window/window/window.qrc
new file mode 100644
index 0000000000..c203c140fc
--- /dev/null
+++ b/examples/quick/window/window/window.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/window/window">
+ <file>Window.qml</file>
+ </qresource>
+</RCC>