diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-08-01 08:16:19 +0200 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-08-01 14:52:50 +0200 |
| commit | 1b6ff56e206e721dce592dbf4d47f82151d55e1e (patch) | |
| tree | 18327f930f05d4bcc518c047e3ce0941a1ce015f /sources/pyside6/PySide6/glue/qtgui.cpp | |
| parent | 8ee466c08d5f29f0dae51bd7549bd1f19b9a4b50 (diff) | |
Move native interfaces out of the QtGui type system file
It is bound to grow as more interfaces with more modifications
are added.
Rename the code snippet used for int conversion.
Also add a test for X11.
Task-number: PYSIDE-2787
Change-Id: Ia5f5cf7f0fbb551c38367d80e9fdb4b004db9085
Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtgui.cpp')
| -rw-r--r-- | sources/pyside6/PySide6/glue/qtgui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sources/pyside6/PySide6/glue/qtgui.cpp b/sources/pyside6/PySide6/glue/qtgui.cpp index 72d3d2b46..b394c4ad0 100644 --- a/sources/pyside6/PySide6/glue/qtgui.cpp +++ b/sources/pyside6/PySide6/glue/qtgui.cpp @@ -934,10 +934,11 @@ if (!hasNativeScreen) { } // @snippet qscreen-nativeInterface -// @snippet qx11application-resource-ptr +// Return 'int' from native interface's forward-declared structs like Display* +// @snippet native-resource-ptr auto *resource = %CPPSELF.%FUNCTION_NAME(); %PYARG_0 = PyLong_FromVoidPtr(resource); -// @snippet qx11application-resource-ptr +// @snippet native-resource-ptr // @snippet qwindow-fromWinId WId id = %1; |
