summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-01-30 12:57:34 +0100
committerAndy Shaw <andy.shaw@qt.io>2020-01-30 13:22:56 +0000
commitc50e928e7698d24e5ed070a3f638067e40abe2ca (patch)
tree1d4faf78ea936736fbce1b73a3ed57fe4e8ed588
parent652a6da4b3491c9dc217d247a4a059bca12db57c (diff)
downloadqt-creator-c50e928e7698d24e5ed070a3f638067e40abe2ca.tar.gz
Fix progressbar example so that it compiles and related doc
Change-Id: I17423a57cf4e86492462caacd3ba0a9d5d4dd6be Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
-rw-r--r--doc/examples/progressbar/main.cpp2
-rw-r--r--doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/progressbar/main.cpp b/doc/examples/progressbar/main.cpp
index d8275e35c2..b418a6c3df 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 ff8d929f9e..73df38d295 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.