diff options
author | Renato Filho <renato.filho@openbossa.org> | 2010-08-10 14:26:45 -0300 |
---|---|---|
committer | Renato Filho <renato.filho@openbossa.org> | 2010-08-10 16:17:56 -0300 |
commit | 66adabc96d0c98e124f6c1cb6c454f1aff6ee883 (patch) | |
tree | f0fc8f221dce30aa0a457bb8e453a9983480837b | |
parent | c21de7bd8161243da4c238c639930270b0b298e3 (diff) |
Created conversion to QStack.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r-- | PySide/QtCore/qstack_conversion.h | 4 | ||||
-rw-r--r-- | PySide/QtCore/typesystem_core.xml | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/PySide/QtCore/qstack_conversion.h b/PySide/QtCore/qstack_conversion.h new file mode 100644 index 000000000..709a91891 --- /dev/null +++ b/PySide/QtCore/qstack_conversion.h @@ -0,0 +1,4 @@ +namespace Shiboken { +template<typename T> +struct Converter<QStack<T> > : StdListConverter<QStack<T> > {}; +} diff --git a/PySide/QtCore/typesystem_core.xml b/PySide/QtCore/typesystem_core.xml index 94a0a8c4e..b4f02ca86 100644 --- a/PySide/QtCore/typesystem_core.xml +++ b/PySide/QtCore/typesystem_core.xml @@ -179,6 +179,10 @@ <include file-name="QVector" location="global"/> </container-type> + <container-type name="QStack" type="vector"> + <include file-name="QStack" location="global"/> + <conversion-rule file="qstack_conversion.h"/> + </container-type> <rejection class="QVector" function-name="back"/> <rejection class="QVector" function-name="begin"/> @@ -220,7 +224,6 @@ <conversion-rule file="qpair_conversions.h"/> <include file-name="QPair" location="global"/> </container-type> - <container-type name="QStack" type="stack"/> <rejection class="*" function-name="d_func"/> <rejection class="*" function-name="data_ptr"/> |