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/accelbubble | |
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/accelbubble')
-rw-r--r-- | examples/sensors/accelbubble/accelbubble.pro | 3 | ||||
-rw-r--r-- | examples/sensors/accelbubble/accelbubble.qrc | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/examples/sensors/accelbubble/accelbubble.pro b/examples/sensors/accelbubble/accelbubble.pro index 523ebf0..3986e4a 100644 --- a/examples/sensors/accelbubble/accelbubble.pro +++ b/examples/sensors/accelbubble/accelbubble.pro @@ -3,6 +3,9 @@ TARGET = accelbubble QT += quick SOURCES = main.cpp +RESOURCES += \ + accelbubble.qrc + app.files = \ $$files(*.qml) \ icon.png \ diff --git a/examples/sensors/accelbubble/accelbubble.qrc b/examples/sensors/accelbubble/accelbubble.qrc new file mode 100644 index 0000000..f3ca2f0 --- /dev/null +++ b/examples/sensors/accelbubble/accelbubble.qrc @@ -0,0 +1,6 @@ +<RCC> + <qresource prefix="/"> + <file>accelbubble.qml</file> + <file>content/Bluebubble2.png</file> + </qresource> +</RCC> |