aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
authorOliver Eftevaag <oliver.eftevaag@qt.io>2023-01-11 09:41:35 +0100
committerOliver Eftevaag <oliver.eftevaag@qt.io>2023-01-11 13:44:35 +0100
commita62da4b06eb45b137081157b1c3220c234ea7509 (patch)
tree339b0d48b63cd887cccd215a92822e8c5d463101 /examples/quick
parent267da2e7a9b24e56c1ff818bc1bd9b945792b21a (diff)
Fix layouts and localstorage examples
The layouts and localstorage examples wouldn't work properly, since the path to the initial qml file given to the engine didn't start with "qrc:/qt/qml" Pick-to: 6.5 Change-Id: I26b5bbf3f6e7078c4f4aba6bab6fc06451b49082 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/layouts/main.cpp4
-rw-r--r--examples/quick/localstorage/main.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/quick/layouts/main.cpp b/examples/quick/layouts/main.cpp
index c48e6cb1aa..92385c4b11 100644
--- a/examples/quick/layouts/main.cpp
+++ b/examples/quick/layouts/main.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2016 The Qt Company Ltd.
+// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QGuiApplication>
@@ -9,7 +9,7 @@ int main(int argc, char* argv[])
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:///layouts/layouts.qml")));
+ engine.load(QUrl(QStringLiteral("qrc:/qt/qml/layouts/layouts.qml")));
return app.exec();
}
diff --git a/examples/quick/localstorage/main.cpp b/examples/quick/localstorage/main.cpp
index 1b2f25fd0f..56c4552bc8 100644
--- a/examples/quick/localstorage/main.cpp
+++ b/examples/quick/localstorage/main.cpp
@@ -1,4 +1,4 @@
-// Copyright (C) 2017 The Qt Company Ltd.
+// Copyright (C) 2023 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QGuiApplication>
#include <QQmlApplicationEngine>
@@ -8,7 +8,7 @@ int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
- engine.load(QUrl(QStringLiteral("qrc:/localstorage/localstorage.qml")));
+ engine.load(QUrl(QStringLiteral("qrc:/qt/qml/localstorage/localstorage.qml")));
return app.exec();
}