Fix QBool custom conversion.
Reviewed by Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
ea56231a36
commit
55d3c6ef4e
1 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,9 @@
|
||||||
template <>
|
template <>
|
||||||
struct Converter<QBool>
|
struct Converter<QBool> : public ConverterBase<QBool>
|
||||||
{
|
{
|
||||||
static PyObject* toPython(QBool cppobj)
|
using ConverterBase<QBool>::toPython;
|
||||||
|
|
||||||
|
static PyObject* toPython(const QBool& cppobj)
|
||||||
{
|
{
|
||||||
return PyBool_FromLong((bool) cppobj);
|
return PyBool_FromLong((bool) cppobj);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue