Custom code should use Converters instead of the "_cptr" macros.

Reviewed by Hugo Parente <hugo.lima@openbossa.org>
This commit is contained in:
Marcelo Lira 2010-02-24 15:19:36 -03:00
commit eeb50b166b
8 changed files with 10 additions and 10 deletions

View file

@ -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) {