summaryrefslogtreecommitdiff
path: root/examples/sensors/stub.h
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2013-05-22 14:45:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-23 02:53:40 +0200
commit3d75c54b8d0d055eff2a41cef7733b6204f8241c (patch)
tree084db4d8b89d68f39cb72697af279874b9ced66c /examples/sensors/stub.h
parentc7dff2e520cbf6fcec414d0b04c2c133e5eb5af3 (diff)
downloadqtsensors-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/stub.h')
-rw-r--r--examples/sensors/stub.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sensors/stub.h b/examples/sensors/stub.h
index c74cffa..b105f93 100644
--- a/examples/sensors/stub.h
+++ b/examples/sensors/stub.h
@@ -45,7 +45,7 @@
{\
QGuiApplication app(argc,argv);\
QQuickView view;\
- view.setSource(QUrl::fromLocalFile(#NAME ".qml"));\
+ view.setSource(QUrl("qrc:///" #NAME ".qml"));\
view.show();\
return app.exec();\
}