Custom code should use Converters instead of the "_cptr" macros.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
parent
15cfd5f5a2
commit
eeb50b166b
8 changed files with 10 additions and 10 deletions
|
|
@ -39,7 +39,7 @@ inline bool Converter<QVariant>::isConvertible(PyObject* pyobj)
|
|||
inline QVariant Converter<QVariant>::toCpp(PyObject* pyobj)
|
||||
{
|
||||
if (SbkQVariant_Check(pyobj))
|
||||
return *SbkQVariant_cptr(pyobj);
|
||||
return *Converter<QVariant*>::toCpp(pyobj);
|
||||
// voodoo stuff to avoid linking qtcore bindings with qtgui bindings
|
||||
uint typeCode = QMetaType::type(pyobj->ob_type->tp_name);
|
||||
if (!typeCode || typeCode > QVariant::UserType) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue