mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Fix Python plugin build with Qt 6.5.
This commit is contained in:
parent
405295b4e1
commit
777789f509
@ -267,7 +267,12 @@
|
|||||||
%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, %5, &%6, %7);
|
%RETURN_TYPE retval_ = %CPPSELF.%FUNCTION_NAME(%1, %2, %3, %4, %5, &%6, %7);
|
||||||
%PYARG_0 = PyTuple_New(2);
|
%PYARG_0 = PyTuple_New(2);
|
||||||
PyTuple_SET_ITEM(%PYARG_0, 0, %CONVERTTOPYTHON[%RETURN_TYPE](retval_));
|
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));
|
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>
|
</template>
|
||||||
|
|
||||||
<suppress-warning text="Unable to translate type "std::function<QPoint (QSize)>":*"/>
|
<suppress-warning text="Unable to translate type "std::function<QPoint (QSize)>":*"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user