aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/shared/shared.h
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2022-05-31 15:00:45 +0200
committerUlf Hermann <[email protected]>2022-06-24 08:45:43 +0200
commitd270c51f812b5f0ffe6208b38c8ea0e898535e50 (patch)
treef9f5e95f7cc0351925c2ed3f1dded34728787f62 /examples/quick/shared/shared.h
parent12b0581a79f5fb866050628009878877af789e46 (diff)
Adapt examples to AUTO_RESOURCE_PREFIX
Examples that don't explicitly set NO_RESOURCE_TARGET_PATH get the AUTO_RESOURCE_PREFIX now. Task-number: QTBUG-103452 Change-Id: I6b41e96ce5620079f60ca2f967b0a2e611c1f738 Reviewed-by: Fabian Kosmale <[email protected]> Reviewed-by: Qt CI Bot <[email protected]> Reviewed-by: Sami Shalayel <[email protected]>
Diffstat (limited to 'examples/quick/shared/shared.h')
-rw-r--r--examples/quick/shared/shared.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/quick/shared/shared.h b/examples/quick/shared/shared.h
index 71b9ce8f9a..382aec4295 100644
--- a/examples/quick/shared/shared.h
+++ b/examples/quick/shared/shared.h
@@ -21,7 +21,6 @@
app.setApplicationName(QFileInfo(app.applicationFilePath()).baseName());\
QQuickView view;\
ADD_MACOS_BUNDLE_IMPORT_PATH\
- view.engine()->addImportPath(QStringLiteral(":/"));\
if (qEnvironmentVariableIntValue("QT_QUICK_CORE_PROFILE")) {\
QSurfaceFormat f = view.format();\
f.setProfile(QSurfaceFormat::CoreProfile);\
@@ -35,7 +34,7 @@
}\
view.connect(view.engine(), &QQmlEngine::quit, &app, &QCoreApplication::quit);\
new QQmlFileSelector(view.engine(), &view);\
- view.setSource(QUrl("qrc:///" #NAME ".qml")); \
+ view.setSource(QUrl("qrc:/qt/qml/" #NAME ".qml")); \
if (view.status() == QQuickView::Error)\
return -1;\
view.setResizeMode(QQuickView::SizeRootObjectToView);\