From b53b9e49ba3b277913b970df758b75b36cc253a4 Mon Sep 17 00:00:00 2001 From: Hugo Lima Date: Mon, 15 Mar 2010 14:43:30 -0300 Subject: Added container conversion to QStringList. --- PySide/QtCore/qstringlist_conversions.h | 22 ++++++++++++++++++++++ PySide/QtCore/typesystem_core.xml | 1 + 2 files changed, 23 insertions(+) create mode 100644 PySide/QtCore/qstringlist_conversions.h 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::checkType(PyObject* pyObj) +{ + return Converter_std_list::checkType(pyObj); +} + +inline bool Converter::isConvertible(PyObject* pyObj) +{ + return Converter_std_list::isConvertible(pyObj); +} + +inline QStringList Converter::toCpp(PyObject* pyObj) +{ + return Converter_std_list::toCpp(pyObj); +} + +inline PyObject* Converter::toPython(const QStringList& cppObj) +{ + return Converter_std_list::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 @@ + -- cgit v1.2.3