Remove ValueHolder template from QtCore custom converters
This commit is contained in:
parent
4f906ed72a
commit
96bc2011c8
1 changed files with 2 additions and 2 deletions
|
|
@ -2,9 +2,9 @@
|
||||||
template <>
|
template <>
|
||||||
struct Converter<QBool>
|
struct Converter<QBool>
|
||||||
{
|
{
|
||||||
static PyObject* toPython(ValueHolder<QBool> holder)
|
static PyObject* toPython(QBool holder)
|
||||||
{
|
{
|
||||||
return PyBool_FromLong((bool)holder.value);
|
return PyBool_FromLong(bool(holder));
|
||||||
}
|
}
|
||||||
static QBool toCpp(PyObject* pyobj)
|
static QBool toCpp(PyObject* pyobj)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue