Removed code injections of copyCppObject and toPython converter methods for QVariant and QString.
Converter<T>::copyCppObject and Converter<T>::toPython are not needed anymore due to improvements in Shiboken generator. Reviewed by Lauro Neto <lauro.neto@openbossa.org>
This commit is contained in:
parent
942c774827
commit
f917ca22a8
2 changed files with 0 additions and 20 deletions
|
|
@ -35,16 +35,6 @@ bool Shiboken::Converter<QVariant>::isConvertible(PyObject* pyobj)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
PyObject* Shiboken::Converter<QVariant>::toPython(const QVariant& cppobj)
|
|
||||||
{
|
|
||||||
return Converter<QVariant>::createWrapper(new QVariant(cppobj));
|
|
||||||
}
|
|
||||||
|
|
||||||
QVariant* Shiboken::Converter<QVariant>::copyCppObject(const QVariant& cppobj)
|
|
||||||
{
|
|
||||||
return new QVariant(cppobj);
|
|
||||||
}
|
|
||||||
|
|
||||||
QVariant Shiboken::Converter<QVariant>::toCpp(PyObject* pyobj)
|
QVariant Shiboken::Converter<QVariant>::toCpp(PyObject* pyobj)
|
||||||
{
|
{
|
||||||
if (SbkQVariant_Check(pyobj))
|
if (SbkQVariant_Check(pyobj))
|
||||||
|
|
|
||||||
|
|
@ -7,16 +7,6 @@ inline bool Converter< QString >::isConvertible(PyObject* pyobj)
|
||||||
|| SbkQChar_Check(pyobj);
|
|| SbkQChar_Check(pyobj);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline QString* Converter<QString >::copyCppObject(const QString& cppobj)
|
|
||||||
{
|
|
||||||
return new QString(cppobj);
|
|
||||||
}
|
|
||||||
|
|
||||||
inline PyObject* Converter< QString >::toPython(const QString& cppobj)
|
|
||||||
{
|
|
||||||
return Converter< QString >::createWrapper(new QString(cppobj));
|
|
||||||
}
|
|
||||||
|
|
||||||
inline QString Converter< QString >::toCpp(PyObject* pyobj)
|
inline QString Converter< QString >::toCpp(PyObject* pyobj)
|
||||||
{
|
{
|
||||||
if (SbkQChar_Check(pyobj)) {
|
if (SbkQChar_Check(pyobj)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue