Translate Shiboken enums to strings during the signal connection.
Fixes bug #903. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
fd45794c3a
commit
505cf202fb
1 changed files with 2 additions and 0 deletions
|
|
@ -519,6 +519,8 @@ char* getTypeName(PyObject* type)
|
||||||
typeName = strdup("double");
|
typeName = strdup("double");
|
||||||
else if (objType == &PyBool_Type)
|
else if (objType == &PyBool_Type)
|
||||||
typeName = strdup("bool");
|
typeName = strdup("bool");
|
||||||
|
else if (objType->ob_type == &SbkEnumType_Type)
|
||||||
|
typeName = strdup(Shiboken::Enum::getCppName(objType));
|
||||||
else
|
else
|
||||||
typeName = strdup("PyObject");
|
typeName = strdup("PyObject");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue