diff options
author | Topi Reinio <topi.reinio@digia.com> | 2013-05-22 14:45:49 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-23 02:53:40 +0200 |
commit | 3d75c54b8d0d055eff2a41cef7733b6204f8241c (patch) | |
tree | 084db4d8b89d68f39cb72697af279874b9ced66c /examples/sensors/shakeit | |
parent | c7dff2e520cbf6fcec414d0b04c2c133e5eb5af3 (diff) | |
download | qtsensors-3d75c54b8d0d055eff2a41cef7733b6204f8241c.tar.gz |
Sensors examples: Use resource system for QML examples
Adds resources (.qml, .js, images, etc.) used in QML examples as
Qt resources. This enables running the examples successfully when
shadow building, without copying the files around.
Task-number: QTBUG-31076
Change-Id: I0f3352cffdc334f6139aac60acd3345710516d65
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Diffstat (limited to 'examples/sensors/shakeit')
-rw-r--r-- | examples/sensors/shakeit/shakeit.pro | 3 | ||||
-rw-r--r-- | examples/sensors/shakeit/shakeit.qrc | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/examples/sensors/shakeit/shakeit.pro b/examples/sensors/shakeit/shakeit.pro index 7335191..cb36f73 100644 --- a/examples/sensors/shakeit/shakeit.pro +++ b/examples/sensors/shakeit/shakeit.pro @@ -3,6 +3,9 @@ TARGET = shakeit QT += quick SOURCES = main.cpp +RESOURCES += \ + shakeit.qrc + app.files = \ $$files(*.qml) \ icon.png \ diff --git a/examples/sensors/shakeit/shakeit.qrc b/examples/sensors/shakeit/shakeit.qrc new file mode 100644 index 0000000..1a2c75d --- /dev/null +++ b/examples/sensors/shakeit/shakeit.qrc @@ -0,0 +1,10 @@ +<RCC> + <qresource prefix="/"> + <file>shakeit.qml</file> + <file>audio/loopy2a_mono.wav</file> + <file>audio/phone.wav</file> + <file>content/triangle.png</file> + <file>content/triangle2.png</file> + <file>content/triangle3.png</file> + </qresource> +</RCC> |