aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-06-19 17:06:22 +1000
committerQt by Nokia <qt-info@nokia.com>2012-06-20 07:45:20 +0200
commit4bc1c0c7178ab3e376df87cd08acebd5d552c212 (patch)
tree5ea046acc1080fcdced3274ae23ce8bcaf848d39 /examples
parentc804ab099a98cdd45c49a1f52f3d53e5e9969def (diff)
Resolve example qml file paths relative to the executable path.
Task-number: QTBUG-26202 Change-Id: I0ef9d2aa2248c8ddfd61afcd8bca731325f8d239 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/shared/shared.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/shared/shared.h b/examples/shared/shared.h
index e6d0130ec8..72157e02ef 100644
--- a/examples/shared/shared.h
+++ b/examples/shared/shared.h
@@ -43,7 +43,7 @@
{\
QGuiApplication app(argc,argv);\
QQuickView view;\
- view.setSource(QUrl::fromLocalFile(#NAME ".qml"));\
+ view.setSource(QUrl::fromLocalFile(QCoreApplication::applicationDirPath() + QLatin1String("/" #NAME ".qml")));\
view.show();\
return app.exec();\
}