diff options
Diffstat (limited to 'examples')
15 files changed, 15 insertions, 15 deletions
diff --git a/examples/qml/tutorials/extending-qml/chapter1-basics/main.cpp b/examples/qml/tutorials/extending-qml/chapter1-basics/main.cpp index 10df9c2566..1811c9bb9d 100644 --- a/examples/qml/tutorials/extending-qml/chapter1-basics/main.cpp +++ b/examples/qml/tutorials/extending-qml/chapter1-basics/main.cpp @@ -60,6 +60,6 @@ int main(int argc, char *argv[]) view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///app.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } //![0] diff --git a/examples/qml/tutorials/extending-qml/chapter2-methods/main.cpp b/examples/qml/tutorials/extending-qml/chapter2-methods/main.cpp index 10df9c2566..1811c9bb9d 100644 --- a/examples/qml/tutorials/extending-qml/chapter2-methods/main.cpp +++ b/examples/qml/tutorials/extending-qml/chapter2-methods/main.cpp @@ -60,6 +60,6 @@ int main(int argc, char *argv[]) view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///app.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } //![0] diff --git a/examples/qml/tutorials/extending-qml/chapter3-bindings/main.cpp b/examples/qml/tutorials/extending-qml/chapter3-bindings/main.cpp index 10df9c2566..1811c9bb9d 100644 --- a/examples/qml/tutorials/extending-qml/chapter3-bindings/main.cpp +++ b/examples/qml/tutorials/extending-qml/chapter3-bindings/main.cpp @@ -60,6 +60,6 @@ int main(int argc, char *argv[]) view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///app.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } //![0] diff --git a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/main.cpp b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/main.cpp index 76e075a72c..d052c2da88 100644 --- a/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/main.cpp +++ b/examples/qml/tutorials/extending-qml/chapter4-customPropertyTypes/main.cpp @@ -63,7 +63,7 @@ int main(int argc, char *argv[]) view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///app.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); //![2] } diff --git a/examples/qml/tutorials/extending-qml/chapter5-listproperties/main.cpp b/examples/qml/tutorials/extending-qml/chapter5-listproperties/main.cpp index 7262969b62..0d825180f1 100644 --- a/examples/qml/tutorials/extending-qml/chapter5-listproperties/main.cpp +++ b/examples/qml/tutorials/extending-qml/chapter5-listproperties/main.cpp @@ -61,5 +61,5 @@ int main(int argc, char *argv[]) view.setResizeMode(QQuickView::SizeRootObjectToView); view.setSource(QUrl("qrc:///app.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } diff --git a/examples/quick/customitems/maskedmousearea/main.cpp b/examples/quick/customitems/maskedmousearea/main.cpp index 5b42516154..3d6fabf22f 100644 --- a/examples/quick/customitems/maskedmousearea/main.cpp +++ b/examples/quick/customitems/maskedmousearea/main.cpp @@ -60,5 +60,5 @@ int main(int argc, char* argv[]) view.setSource(QUrl("qrc:///customitems/maskedmousearea/maskedmousearea.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } diff --git a/examples/quick/scenegraph/d3d11underqml/main.cpp b/examples/quick/scenegraph/d3d11underqml/main.cpp index f2a224c1a2..d6870eed76 100644 --- a/examples/quick/scenegraph/d3d11underqml/main.cpp +++ b/examples/quick/scenegraph/d3d11underqml/main.cpp @@ -63,5 +63,5 @@ int main(int argc, char **argv) view.setSource(QUrl("qrc:///scenegraph/d3d11underqml/main.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } diff --git a/examples/quick/scenegraph/fboitem/main.cpp b/examples/quick/scenegraph/fboitem/main.cpp index 61510cdb93..fc0f586136 100644 --- a/examples/quick/scenegraph/fboitem/main.cpp +++ b/examples/quick/scenegraph/fboitem/main.cpp @@ -65,5 +65,5 @@ int main(int argc, char **argv) view.setSource(QUrl("qrc:///scenegraph/fboitem/main.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } diff --git a/examples/quick/scenegraph/graph/main.cpp b/examples/quick/scenegraph/graph/main.cpp index 95c310131b..c0fd908b56 100644 --- a/examples/quick/scenegraph/graph/main.cpp +++ b/examples/quick/scenegraph/graph/main.cpp @@ -66,5 +66,5 @@ int main(int argc, char *argv[]) view.setSource(QUrl("qrc:///scenegraph/graph/main.qml")); view.show(); - return a.exec(); + return QGuiApplication::exec(); } diff --git a/examples/quick/scenegraph/metalunderqml/main.cpp b/examples/quick/scenegraph/metalunderqml/main.cpp index 4a657a6bf4..b08f692ded 100644 --- a/examples/quick/scenegraph/metalunderqml/main.cpp +++ b/examples/quick/scenegraph/metalunderqml/main.cpp @@ -63,5 +63,5 @@ int main(int argc, char **argv) view.setSource(QUrl("qrc:///scenegraph/metalunderqml/main.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } diff --git a/examples/quick/scenegraph/openglunderqml/main.cpp b/examples/quick/scenegraph/openglunderqml/main.cpp index d92cbb2d80..ed3d0f8f3e 100644 --- a/examples/quick/scenegraph/openglunderqml/main.cpp +++ b/examples/quick/scenegraph/openglunderqml/main.cpp @@ -66,6 +66,6 @@ int main(int argc, char **argv) view.setSource(QUrl("qrc:///scenegraph/openglunderqml/main.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } //! [1] diff --git a/examples/quick/scenegraph/threadedanimation/main.cpp b/examples/quick/scenegraph/threadedanimation/main.cpp index 85ff486b16..dfc26566c4 100644 --- a/examples/quick/scenegraph/threadedanimation/main.cpp +++ b/examples/quick/scenegraph/threadedanimation/main.cpp @@ -61,5 +61,5 @@ int main(int argc, char **argv) view.setSource(QUrl("qrc:///scenegraph/threadedanimation/main.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } diff --git a/examples/quick/scenegraph/twotextureproviders/main.cpp b/examples/quick/scenegraph/twotextureproviders/main.cpp index 669b42cb40..767b5732cc 100644 --- a/examples/quick/scenegraph/twotextureproviders/main.cpp +++ b/examples/quick/scenegraph/twotextureproviders/main.cpp @@ -65,5 +65,5 @@ int main(int argc, char **argv) view.setSource(QUrl("qrc:///scenegraph/twotextureproviders/main.qml")); view.show(); - return app.exec(); + return QGuiApplication::exec(); } diff --git a/examples/quick/tableview/gameoflife/main.cpp b/examples/quick/tableview/gameoflife/main.cpp index 8fa6b8b1db..c91b66f17a 100644 --- a/examples/quick/tableview/gameoflife/main.cpp +++ b/examples/quick/tableview/gameoflife/main.cpp @@ -61,5 +61,5 @@ int main(int argc, char *argv[]) if (engine.rootObjects().isEmpty()) return -1; - return app.exec(); + return QGuiApplication::exec(); } diff --git a/examples/quick/tableview/pixelator/main.cpp b/examples/quick/tableview/pixelator/main.cpp index c07f43dc27..c74eac17bc 100644 --- a/examples/quick/tableview/pixelator/main.cpp +++ b/examples/quick/tableview/pixelator/main.cpp @@ -63,5 +63,5 @@ int main(int argc, char *argv[]) if (engine.rootObjects().isEmpty()) return -1; - return app.exec(); + return QGuiApplication::exec(); } |