summaryrefslogtreecommitdiffstats
path: root/PySide/QtCore/qtcore_conversions.h
blob: 076eb622325032c606131a116943febe959d9a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
template <>
struct Converter<QBool>
{
    static PyObject* toPython(ValueHolder<QBool> holder)
    {
        return PyBool_FromLong((bool)holder.value);
    }
    static QBool toCpp(PyObject* pyobj)
    {
        return QBool(pyobj == Py_True);
    }
};