summaryrefslogtreecommitdiffstats
path: root/examples/location/places_list
diff options
context:
space:
mode:
Diffstat (limited to 'examples/location/places_list')
-rw-r--r--examples/location/places_list/main.cpp2
-rw-r--r--examples/location/places_list/places_list.pro6
-rw-r--r--examples/location/places_list/resources.qrc5
3 files changed, 9 insertions, 4 deletions
diff --git a/examples/location/places_list/main.cpp b/examples/location/places_list/main.cpp
index a2795657..2db67f78 100644
--- a/examples/location/places_list/main.cpp
+++ b/examples/location/places_list/main.cpp
@@ -45,7 +45,7 @@ int main(int argc, char **argv)
{
QGuiApplication app(argc,argv);
QQuickView view;
- view.setSource(QUrl::fromLocalFile("places_list.qml"));
+ view.setSource(QUrl(QStringLiteral("qrc:///places_list.qml")));
view.show();
return app.exec();
}
diff --git a/examples/location/places_list/places_list.pro b/examples/location/places_list/places_list.pro
index 68a6d494..f2fddb5a 100644
--- a/examples/location/places_list/places_list.pro
+++ b/examples/location/places_list/places_list.pro
@@ -4,9 +4,9 @@ TEMPLATE = app
QT += quick qml network
SOURCES = main.cpp
-qmlcontent.files += $$files(*.qml)
+RESOURCES += \
+ resources.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/location/places_list
-qmlcontent.path = $$[QT_INSTALL_EXAMPLES]/location/places_list
+INSTALLS += target
-INSTALLS += target qmlcontent
diff --git a/examples/location/places_list/resources.qrc b/examples/location/places_list/resources.qrc
new file mode 100644
index 00000000..4cc332e2
--- /dev/null
+++ b/examples/location/places_list/resources.qrc
@@ -0,0 +1,5 @@
+<RCC>
+ <qresource prefix="/">
+ <file>places_list.qml</file>
+ </qresource>
+</RCC>