blob: 7559b3c09ebdeee8ac0f0768c6b6ed2b5b7558d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
namespace Shiboken {
template <>
struct Converter<QBool> : public ConverterBase<QBool>
{
using ConverterBase<QBool>::toPython;
static PyObject* toPython(const QBool& cppobj)
{
return PyBool_FromLong((bool) cppobj);
}
static QBool toCpp(PyObject* pyobj)
{
return QBool(pyobj == Py_True);
}
};
}
|