aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtWidgets/qdialog_test.py
Commit message (Collapse)AuthorAgeFilesLines
* Speed up QtWidgets tests testing QDialogFriedemann Kleint2025-07-091-2/+24
| | | | | | | | | | | Use the timer logic introduced for qfontdialog to close the dialog. Reduces test time from 0.984s to 0.073s. Pick-to: 6.9 6.8 Change-Id: I5ac1dd8da9f2b814ccea4ea9a8fddb03395620c9 Reviewed-by: Ece Cinucen <ece.cinucen@qt.io> Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
* Python-3.10: Allow the new syntax for Python 3.9Christian Tismer2024-06-201-0/+1
| | | | | | | | Add a future statement to all Python source files. Task-number: PYSIDE-2786 Change-Id: Icd6688c7795a9e16fdcaa829686d57792df27690 Reviewed-by: Adrian Herrmann <adrian.herrmann@qt.io>
* Release dialogs when using QDialog.exec()Friedemann Kleint2024-04-121-0/+52
In the typical pattern ported from C++ dialog = QDialog(mainWin) dialog.exec() one would expected the dialog to be deleted. However, due to the constructor heuristics creating a parent-child relationship, the dialog leaks. Add a modification to remove the relationship in case exec() is called. Change-Id: Ibc6f8c150cbd80a4085af4a5b713ee7c2c62abf3 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>