Put all custom converters inside Shiboken namespace.
This commit is contained in:
parent
20077974e8
commit
3599b75f88
10 changed files with 20 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ struct QMetaTypeId< PyObjectHolder >
|
|||
};
|
||||
QT_END_NAMESPACE
|
||||
|
||||
namespace Shiboken {
|
||||
// all types are convertible to QVariant
|
||||
inline bool Converter<QVariant>::isConvertible(PyObject* pyobj)
|
||||
{
|
||||
|
|
@ -81,3 +82,4 @@ inline QVariant Converter<QVariant>::toCpp(PyObject* pyobj)
|
|||
return QVariant(typeCode, reinterpret_cast<SbkBaseWrapper*>(pyobj)->cptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue