diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-04-06 19:49:37 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:07 -0300 |
commit | 00f0ea88cfd1020ff3765597ca9525eb73a783b2 (patch) | |
tree | 76552abdc5711e8e84a8212529663155c5df6bdd /PySide/typesystem_templates.xml | |
parent | 4b1986f9179293103d14edcefec80571f92db227 (diff) |
Merged fix_int*... and fix_qreal*... type system templates.
Also modified the method call to be friendlier with virtual methods.
Diffstat (limited to 'PySide/typesystem_templates.xml')
-rw-r--r-- | PySide/typesystem_templates.xml | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/PySide/typesystem_templates.xml b/PySide/typesystem_templates.xml index 9ef317d55..e42193e74 100644 --- a/PySide/typesystem_templates.xml +++ b/PySide/typesystem_templates.xml @@ -142,18 +142,10 @@ %PYARG_0 = Shiboken::makeTuple(retval_, val_); </template> - <template name="fix_int*,int*,int*,int*"> - int a, b, c, d; + <template name="fix_number*,number*,number*,number*"> + $TYPE a, b, c, d; PyThreadState* _save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS - %CPPSELF.%FUNCTION_NAME(&a, &b, &c, &d); - PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS - %PYARG_0 = Shiboken::makeTuple(a, b, c, d); - </template> - - <template name="fix_qreal*,qreal*,qreal*,qreal*"> - qreal a, b, c, d; - PyThreadState* _save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS - %CPPSELF.%FUNCTION_NAME(&a, &b, &c, &d); + %CPPSELF->::%TYPE::%FUNCTION_NAME(&a, &b, &c, &d); PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS %PYARG_0 = Shiboken::makeTuple(a, b, c, d); </template> |