Updates code injections to follow Shiboken generator changes.

Reviewed by Hugo Lima <hugo.lima@openbossa.org>
This commit is contained in:
Marcelo Lira 2009-12-11 20:43:12 -03:00
commit 84282e06ac
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
PyObject* SbkQCoreApplication_New(PyTypeObject *type, PyObject *args, PyObject*) PyObject* SbkQCoreApplication_New(Shiboken::SbkBaseWrapperType* type, PyObject* args, PyObject*)
{ {
int numArgs = PyTuple_GET_SIZE(args); int numArgs = PyTuple_GET_SIZE(args);
if (numArgs != 1) { if (numArgs != 1) {

View file

@ -1443,7 +1443,7 @@
<inject-code class="native" position="beginning" file="glue/qvariant_converter_impl.cpp" /> <inject-code class="native" position="beginning" file="glue/qvariant_converter_impl.cpp" />
<add-function signature="QVariant(PyObject*)"> <add-function signature="QVariant(PyObject*)">
<inject-code class="target" position="beginning"> <inject-code class="target" position="beginning">
cptr = new QVariant(Shiboken::Converter&lt;QVariant>::toCpp(%PYARG_1)); cptr = new %TYPE(%CONVERTTOCPP[QVariant](%PYARG_1));
</inject-code> </inject-code>
</add-function> </add-function>
<add-function signature="toPyObject()" return-type="PyObject*"> <add-function signature="toPyObject()" return-type="PyObject*">