diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-15 14:43:30 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2010-03-15 14:45:27 -0300 |
commit | b53b9e49ba3b277913b970df758b75b36cc253a4 (patch) | |
tree | 4fe3372aba31b3b58efc1b72cb1fbe0195df6357 | |
parent | fc9619b5651e5aa7d39b0651f6e426d8b71f8db9 (diff) |
Added container conversion to QStringList.
-rw-r--r-- | PySide/QtCore/qstringlist_conversions.h | 22 | ||||
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 1 |
2 files changed, 23 insertions, 0 deletions
diff --git a/PySide/QtCore/qstringlist_conversions.h b/PySide/QtCore/qstringlist_conversions.h new file mode 100644 index 000000000..f3387cb66 --- /dev/null +++ b/PySide/QtCore/qstringlist_conversions.h @@ -0,0 +1,22 @@ +namespace Shiboken +{ +inline bool Converter<QStringList>::checkType(PyObject* pyObj) +{ + return Converter_std_list<QStringList>::checkType(pyObj); +} + +inline bool Converter<QStringList>::isConvertible(PyObject* pyObj) +{ + return Converter_std_list<QStringList>::isConvertible(pyObj); +} + +inline QStringList Converter<QStringList>::toCpp(PyObject* pyObj) +{ + return Converter_std_list<QStringList>::toCpp(pyObj); +} + +inline PyObject* Converter<QStringList>::toPython(const QStringList& cppObj) +{ + return Converter_std_list<QStringList>::toPython(cppObj); +} +} diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 0a391e928..4f155dbc8 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -1797,6 +1797,7 @@ </modify-function> </value-type> <value-type name="QStringList"> + <conversion-rule file="qstringlist_conversions.h"/> <modify-function signature="fromVector(QVector<QString>)" remove="all" /> <add-function signature="__len__"> <inject-code class="target" position="beginning"> |