From c50e928e7698d24e5ed070a3f638067e40abe2ca Mon Sep 17 00:00:00 2001 From: Andy Shaw Date: Thu, 30 Jan 2020 12:57:34 +0100 Subject: [PATCH] Fix progressbar example so that it compiles and related doc Change-Id: I17423a57cf4e86492462caacd3ba0a9d5d4dd6be Reviewed-by: Paul Wicking Reviewed-by: Leena Miettinen --- doc/examples/progressbar/main.cpp | 2 +- doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/examples/progressbar/main.cpp b/doc/examples/progressbar/main.cpp index d8275e35c29..b418a6c3df2 100644 --- a/doc/examples/progressbar/main.cpp +++ b/doc/examples/progressbar/main.cpp @@ -9,7 +9,7 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); QQuickView view; - view.engine->addImportPath("qrc:/qml/imports"); + view.engine()->addImportPath("qrc:/qml/imports"); view.setSource(QUrl("qrc:/qml/ProgressBar.ui.qml")); if (!view.errors().isEmpty()) return -1; diff --git a/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc b/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc index ff8d929f9eb..73df38d295b 100644 --- a/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc +++ b/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc @@ -100,7 +100,7 @@ \skipto QQuickView view; \printuntil view.show() Where \c {qrc:/qml/imports} is the import path and - \c {qrc:qml/ProgressBar.ui.qml} is the path to and the + \c {qrc:/qml/ProgressBar.ui.qml} is the path to and the name of the main QML file in the Qt Quick UI project. \li Select \uicontrol Build > \uicontrol Run to build and run your project.