summaryrefslogtreecommitdiffstats
path: root/PySide
diff options
context:
space:
mode:
authorRenato Filho <renato.filho@openbossa.org>2011-05-09 19:49:25 -0300
committerRenato Filho <renato.filho@openbossa.org>2011-05-10 16:50:21 -0300
commit99c62a3a0911210c361bd84198a8ee1ea2c75fa6 (patch)
tree0316202b119425a5c1176508d1fa3626414c58df /PySide
parent18e0ece1c964079b4b71e46bb1d1862950ea7935 (diff)
downloadpyside-99c62a3a0911210c361bd84198a8ee1ea2c75fa6.tar.gz
pyside-99c62a3a0911210c361bd84198a8ee1ea2c75fa6.tar.xz
pyside-99c62a3a0911210c361bd84198a8ee1ea2c75fa6.zip
Create pythonic functions for QTransform class.
fixes bug #615. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Hugo Parente Lima <hugo.pl@gmail.com>
Diffstat (limited to 'PySide')
-rw-r--r--PySide/QtGui/typesystem_gui_common.xml35
1 files changed, 35 insertions, 0 deletions
diff --git a/PySide/QtGui/typesystem_gui_common.xml b/PySide/QtGui/typesystem_gui_common.xml
index f0e1354..30c4add 100644
--- a/PySide/QtGui/typesystem_gui_common.xml
+++ b/PySide/QtGui/typesystem_gui_common.xml
@@ -224,6 +224,41 @@
<insert-template name="fix_bool*"/>
</inject-code>
</modify-function>
+ <add-function signature="quadToQuad(const QPolygonF&amp;, const QPolygonF&amp;)" return-type="PyObject*" static="true">
+ <inject-code>
+ QTransform _result;
+ if (QTransform::quadToQuad(%1, %2, _result)) {
+ %PYARG_0 = %CONVERTTOPYTHON[QTransform](_result);
+ } else {
+ Py_INCREF(Py_None);
+ %PYARG_0 = Py_None;
+ }
+ </inject-code>
+ </add-function>
+ <add-function signature="quadToSquare(const QPolygonF &amp;)" return-type="PyObject*" static="true">
+ <inject-code>
+ QTransform _result;
+ if (QTransform::quadToSquare(%1, _result)) {
+ %PYARG_0 = %CONVERTTOPYTHON[QTransform](_result);
+ } else {
+ Py_INCREF(Py_None);
+ %PYARG_0 = Py_None;
+ }
+ </inject-code>
+ </add-function>
+
+ <add-function signature="squareToQuad(const QPolygonF &amp;)" return-type="PyObject*" static="true">
+ <inject-code>
+ QTransform _result;
+ if (QTransform::squareToQuad(%1, _result)) {
+ %PYARG_0 = %CONVERTTOPYTHON[QTransform](_result);
+ } else {
+ Py_INCREF(Py_None);
+ %PYARG_0 = Py_None;
+ }
+ </inject-code>
+ </add-function>
+
</value-type>
<value-type name="QStyleOption" polymorphic-id-expression="%1-&gt;type == QStyleOption::SO_Default">
<enum-type name="OptionType" extensible="yes"/>