aboutsummaryrefslogtreecommitdiffstats
path: root/examples/widgets/draganddrop/draggabletext/draggabletext.py
diff options
context:
space:
mode:
authorCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-04-30 17:49:36 +0200
committerCristian Maureira-Fredes <Cristian.Maureira-Fredes@qt.io>2021-05-06 12:42:27 +0200
commit8b4a74f26efd42da77276e2b767c3bb656f9fcd1 (patch)
tree3ce8ba1aeb804ef4442017748583ba8af11a4991 /examples/widgets/draganddrop/draggabletext/draggabletext.py
parenteb8db99ab4207a38a961de459259f75062d1c364 (diff)
examples: use exec() instead of exec_()
Change-Id: I07dd4339093be8fcc80e63a2ff0448e998356203 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 57e681930f6b4c7c311fc70a66317ef64dee4cb1)
Diffstat (limited to 'examples/widgets/draganddrop/draggabletext/draggabletext.py')
-rw-r--r--examples/widgets/draganddrop/draggabletext/draggabletext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/draganddrop/draggabletext/draggabletext.py b/examples/widgets/draganddrop/draggabletext/draggabletext.py
index 2c54fe97b..9595b0d2c 100644
--- a/examples/widgets/draganddrop/draggabletext/draggabletext.py
+++ b/examples/widgets/draganddrop/draggabletext/draggabletext.py
@@ -74,7 +74,7 @@ class DragLabel(QLabel):
drag.setPixmap(pixmap)
drag.setHotSpot(hot_spot)
- drop_action = drag.exec_(Qt.CopyAction | Qt.MoveAction, Qt.CopyAction)
+ drop_action = drag.exec(Qt.CopyAction | Qt.MoveAction, Qt.CopyAction)
if drop_action == Qt.MoveAction:
self.close()
@@ -153,4 +153,4 @@ if __name__ == '__main__':
app = QApplication(sys.argv)
window = DragWidget()
window.show()
- sys.exit(app.exec_())
+ sys.exit(app.exec())