namespace Shiboken { inline bool Shiboken::Converter::isConvertible(PyObject* pyObj) { return PyObject_TypeCheck(pyObj, SbkType()) || SbkPySide_QtCore_QChar_SpecialCharacter_Check(pyObj) || SbkQLatin1Char_Check(pyObj) || (PyString_Check(pyObj) && (PyString_Size(pyObj) == 1)) || PyInt_Check(pyObj); } inline QChar Shiboken::Converter::toCpp(PyObject* pyObj) { if (!Shiboken_TypeCheck(pyObj, QChar)) { if (SbkPySide_QtCore_QChar_SpecialCharacter_Check(pyObj)) return QChar(Shiboken::Converter::toCpp(pyObj)); else if (SbkQLatin1Char_Check(pyObj)) return QChar(Shiboken::Converter::toCpp(pyObj)); else if (PyString_Check(pyObj) && PyString_Size(pyObj) == 1) return QChar(Shiboken::Converter::toCpp(pyObj)); else if (PyInt_Check(pyObj)) return QChar(Shiboken::Converter::toCpp(pyObj)); } return *Converter::toCpp(pyObj); } inline PyObject* Converter::toPython(const QChar& cppObj) { return ValueTypeConverter::toPython(cppObj); } }