1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Fix Python plugin build with Qt 6.5.

This commit is contained in:
Tiernan Hubble 2023-04-23 13:28:38 -06:00 committed by Juraj Oravec
parent 405295b4e1
commit 777789f509
Signed by: SGOrava
GPG Key ID: 13660A3F1D9F093B

View File

@ -267,7 +267,12 @@
%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, %5, &%6, %7);
%PYARG_0 = PyTuple_New(2);
PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG6_TYPE](%6));
#else
auto ARG6_PTR = &%6;
PyTuple_SET_ITEM(%PYARG_0, 1, %CONVERTTOPYTHON[%ARG6_TYPE](ARG6_PTR));
#endif
</template>
<suppress-warning text="Unable to translate type &quot;std::function&lt;QPoint (QSize)&gt;&quot;:*"/>