diff options
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtprintsupport.cpp')
-rw-r--r-- | sources/pyside6/PySide6/glue/qtprintsupport.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/glue/qtprintsupport.cpp b/sources/pyside6/PySide6/glue/qtprintsupport.cpp index 300a498c0..acd8eb4e2 100644 --- a/sources/pyside6/PySide6/glue/qtprintsupport.cpp +++ b/sources/pyside6/PySide6/glue/qtprintsupport.cpp @@ -41,3 +41,16 @@ bool out = %CPPSELF.setPageSize(%1); %PYARG_0 = %CONVERTTOPYTHON[bool](out); // @snippet setpagesize + +// @snippet exec +if (PyErr_WarnEx(PyExc_DeprecationWarning, + "'exec_' will be removed in the future. " + "Use 'exec' instead.", + 1)) { + return nullptr; +} +%BEGIN_ALLOW_THREADS +int cppResult = %CPPSELF.exec(); +%END_ALLOW_THREADS +%PYARG_0 = %CONVERTTOPYTHON[int](cppResult); +// @snippet exec |