aboutsummaryrefslogtreecommitdiffstats
path: root/PySide/QtCore/qvector_conversions.h
diff options
context:
space:
mode:
authorHugo Lima <hugo.lima@openbossa.org>2009-10-27 11:32:27 -0200
committerHugo Lima <hugo.lima@openbossa.org>2009-10-27 11:32:27 -0200
commit568683ea4b2ff7a8209333ddf5ee5e166f4aee25 (patch)
tree9456452e899c8c090e1c836fc9a2561aee8b1350 /PySide/QtCore/qvector_conversions.h
parent5b440adbbcc6ae8468c869dfd68b25950a12abe2 (diff)
- Added isConvertible methods to all custom converters.
- Added a custom converter for QString.
Diffstat (limited to 'PySide/QtCore/qvector_conversions.h')
-rw-r--r--PySide/QtCore/qvector_conversions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/PySide/QtCore/qvector_conversions.h b/PySide/QtCore/qvector_conversions.h
index c1cc304c1..5b4a10f60 100644
--- a/PySide/QtCore/qvector_conversions.h
+++ b/PySide/QtCore/qvector_conversions.h
@@ -1,6 +1,9 @@
template <typename qvector>
struct Converter_qvector
{
+ static bool isConvertible(const PyObject* pyObj) {
+ return PySequence_Check(const_cast<PyObject*>(pyObj));
+ }
static PyObject* toPython(qvector vector)
{
PyObject* result = PyList_New(vector.size());