Fix bug#256 - "PySide does not support signals with containers."
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
parent
ee00f28629
commit
b812f04d24
3 changed files with 39 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ struct QtDictConverter
|
|||
return true;
|
||||
}
|
||||
|
||||
static inline PyObject* toPython(void* cppObj) { return toPython(*reinterpret_cast<QtDict*>(cppObj)); }
|
||||
static inline PyObject* toPython(const QtDict& cppobj)
|
||||
{
|
||||
PyObject* result = PyDict_New();
|
||||
|
|
@ -133,6 +134,7 @@ struct QtMultiMapConverter
|
|||
return true;
|
||||
}
|
||||
|
||||
static inline PyObject* toPython(void* cppObj) { return toPython(*reinterpret_cast<MultiMap*>(cppObj)); }
|
||||
static inline PyObject* toPython(const MultiMap& cppObj)
|
||||
{
|
||||
PyObject* result = PyDict_New();
|
||||
|
|
@ -194,6 +196,7 @@ struct QSequenceConverter
|
|||
}
|
||||
return true;
|
||||
}
|
||||
static inline PyObject* toPython(void* cppObj) { return toPython(*reinterpret_cast<T*>(cppObj)); }
|
||||
static PyObject* toPython(const T& cppobj)
|
||||
{
|
||||
PyObject* result = PyList_New((int) cppobj.size());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue