aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative')
-rw-r--r--examples/declarative/extending/chapter1-basics/basics.py2
-rw-r--r--examples/declarative/extending/chapter2-methods/methods.py2
-rw-r--r--examples/declarative/extending/chapter3-bindings/bindings.py2
-rw-r--r--examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py2
-rw-r--r--examples/declarative/extending/chapter5-listproperties/listproperties.py2
-rw-r--r--examples/declarative/scrolling/scrolling.py2
-rw-r--r--examples/declarative/signals/pytoqml1/main.py2
-rw-r--r--examples/declarative/signals/pytoqml2/main.py2
-rw-r--r--examples/declarative/signals/qmltopy1/main.py2
-rw-r--r--examples/declarative/signals/qmltopy2/main.py2
-rw-r--r--examples/declarative/signals/qmltopy3/main.py2
-rw-r--r--examples/declarative/signals/qmltopy4/main.py2
-rw-r--r--examples/declarative/textproperties/main.py2
-rw-r--r--examples/declarative/usingmodel/usingmodel.py2
14 files changed, 14 insertions, 14 deletions
diff --git a/examples/declarative/extending/chapter1-basics/basics.py b/examples/declarative/extending/chapter1-basics/basics.py
index db508d297..f1492d959 100644
--- a/examples/declarative/extending/chapter1-basics/basics.py
+++ b/examples/declarative/extending/chapter1-basics/basics.py
@@ -95,7 +95,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/extending/chapter2-methods/methods.py b/examples/declarative/extending/chapter2-methods/methods.py
index c0fd0050a..c9e7be8f3 100644
--- a/examples/declarative/extending/chapter2-methods/methods.py
+++ b/examples/declarative/extending/chapter2-methods/methods.py
@@ -102,7 +102,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/extending/chapter3-bindings/bindings.py b/examples/declarative/extending/chapter3-bindings/bindings.py
index 3bb70dbab..cacac78da 100644
--- a/examples/declarative/extending/chapter3-bindings/bindings.py
+++ b/examples/declarative/extending/chapter3-bindings/bindings.py
@@ -106,7 +106,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
index 0cd8feb61..a4a74fef4 100644
--- a/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
+++ b/examples/declarative/extending/chapter4-customPropertyTypes/customPropertyTypes.py
@@ -109,7 +109,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/extending/chapter5-listproperties/listproperties.py b/examples/declarative/extending/chapter5-listproperties/listproperties.py
index 4f24a3a87..eeaba0858 100644
--- a/examples/declarative/extending/chapter5-listproperties/listproperties.py
+++ b/examples/declarative/extending/chapter5-listproperties/listproperties.py
@@ -123,7 +123,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/scrolling/scrolling.py b/examples/declarative/scrolling/scrolling.py
index be909e2d6..c585cc962 100644
--- a/examples/declarative/scrolling/scrolling.py
+++ b/examples/declarative/scrolling/scrolling.py
@@ -64,7 +64,7 @@ if __name__ == '__main__':
sys.exit(-1)
view.show()
- app.exec_()
+ app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/signals/pytoqml1/main.py b/examples/declarative/signals/pytoqml1/main.py
index fa31c50bb..3dc18adaf 100644
--- a/examples/declarative/signals/pytoqml1/main.py
+++ b/examples/declarative/signals/pytoqml1/main.py
@@ -62,7 +62,7 @@ if __name__ == '__main__':
timer.timeout.connect(root.updateRotater)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/signals/pytoqml2/main.py b/examples/declarative/signals/pytoqml2/main.py
index 97d4d96f8..30ec5a4f6 100644
--- a/examples/declarative/signals/pytoqml2/main.py
+++ b/examples/declarative/signals/pytoqml2/main.py
@@ -78,7 +78,7 @@ if __name__ == '__main__':
timer.timeout.connect(rotatevalue.increment)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make
# sure all child QML instances are destroyed in the correct order.
del view
diff --git a/examples/declarative/signals/qmltopy1/main.py b/examples/declarative/signals/qmltopy1/main.py
index 3c0ebbeaa..d323d9a0f 100644
--- a/examples/declarative/signals/qmltopy1/main.py
+++ b/examples/declarative/signals/qmltopy1/main.py
@@ -80,7 +80,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/signals/qmltopy2/main.py b/examples/declarative/signals/qmltopy2/main.py
index d5cb260a0..1bf22b2af 100644
--- a/examples/declarative/signals/qmltopy2/main.py
+++ b/examples/declarative/signals/qmltopy2/main.py
@@ -73,7 +73,7 @@ if __name__ == '__main__':
if view.status() == QQuickView.Error:
sys.exit(-1)
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/signals/qmltopy3/main.py b/examples/declarative/signals/qmltopy3/main.py
index e1a4672a8..0f6523125 100644
--- a/examples/declarative/signals/qmltopy3/main.py
+++ b/examples/declarative/signals/qmltopy3/main.py
@@ -64,7 +64,7 @@ if __name__ == '__main__':
root.buttonClicked.connect(lambda: sayThis("clicked button (QML top-level signal)"))
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/signals/qmltopy4/main.py b/examples/declarative/signals/qmltopy4/main.py
index 4e58350fb..96183c02d 100644
--- a/examples/declarative/signals/qmltopy4/main.py
+++ b/examples/declarative/signals/qmltopy4/main.py
@@ -64,7 +64,7 @@ if __name__ == '__main__':
button.clicked.connect(lambda: sayThis("clicked button (signal directly connected)"))
view.show()
- res = app.exec_()
+ res = app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view
diff --git a/examples/declarative/textproperties/main.py b/examples/declarative/textproperties/main.py
index 3d9944bc8..48a3f1d91 100644
--- a/examples/declarative/textproperties/main.py
+++ b/examples/declarative/textproperties/main.py
@@ -110,4 +110,4 @@ if __name__ == '__main__':
if not engine.rootObjects():
sys.exit(-1)
- sys.exit(app.exec_())
+ sys.exit(app.exec())
diff --git a/examples/declarative/usingmodel/usingmodel.py b/examples/declarative/usingmodel/usingmodel.py
index 4dcb8279e..bd1fa2eba 100644
--- a/examples/declarative/usingmodel/usingmodel.py
+++ b/examples/declarative/usingmodel/usingmodel.py
@@ -95,7 +95,7 @@ if __name__ == '__main__':
sys.exit(-1)
view.show()
- app.exec_()
+ app.exec()
# Deleting the view before it goes out of scope is required to make sure all child QML instances
# are destroyed in the correct order.
del view