diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-03-22 14:55:38 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:54:05 -0300 |
commit | fda4e800cab59b96780951d28b32a477ceccd290 (patch) | |
tree | b90453d4b32dc5d6022cc1e5f1964979bc2da486 /PySide/QtXml | |
parent | 080dafd0e50f63943bcf7f0b9e8cdd11b37a4230 (diff) |
Type systems of all modules but QtCore and QtGui reviewed.
Diffstat (limited to 'PySide/QtXml')
-rw-r--r-- | PySide/QtXml/typesystem_xml.xml | 87 |
1 files changed, 20 insertions, 67 deletions
diff --git a/PySide/QtXml/typesystem_xml.xml b/PySide/QtXml/typesystem_xml.xml index d018ee5e0..9d8fb1fb8 100644 --- a/PySide/QtXml/typesystem_xml.xml +++ b/PySide/QtXml/typesystem_xml.xml @@ -27,33 +27,23 @@ <rejection class="QXmlInputSource" field-name="EndOfData"/> <rejection class="QXmlInputSource" field-name="EndOfDocument"/> - <value-type name="QDomAttr"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> - - <value-type name="QDomCDATASection"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> - - <value-type name="QDomCharacterData"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> - - <value-type name="QDomComment"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> + <value-type name="QDomAttr" /> + <value-type name="QDomCDATASection" /> + <value-type name="QDomCharacterData" /> + <value-type name="QDomComment" /> <template name="qdomdocument_setcontent"> QString _errorMsg_; int _errorLine_ = 0; int _errorColumn_ = 0; + + PyThreadState* _save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS bool _ret_ = %CPPSELF.%FUNCTION_NAME(%ARGUMENT_NAMES, &_errorMsg_, &_errorLine_, &_errorColumn_); + PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS %PYARG_0 = Shiboken::makeTuple(_ret_, _errorMsg_, _errorLine_, _errorColumn_); </template> <value-type name="QDomDocument"> - <modify-function signature="nodeType()const" remove="all"/> - <!-- will be replaced in inject code --> <modify-function signature="setContent(const QByteArray&, bool, QString*, int*, int*)"> <modify-argument index="3"> @@ -217,22 +207,10 @@ </modify-function> </value-type> - <value-type name="QDomDocumentFragment"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> - - <value-type name="QDomDocumentType"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> - - <value-type name="QDomEntity"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> - - <value-type name="QDomEntityReference"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> - + <value-type name="QDomDocumentFragment" /> + <value-type name="QDomDocumentType" /> + <value-type name="QDomEntity" /> + <value-type name="QDomEntityReference" /> <value-type name="QDomImplementation"> <enum-type name="InvalidDataPolicy"/> </value-type> @@ -247,30 +225,13 @@ </value-type> <value-type name="QDomNodeList" /> + <value-type name="QDomNotation" /> + <value-type name="QDomProcessingInstruction" /> - <value-type name="QDomNotation"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> - - <value-type name="QDomProcessingInstruction"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> - - <value-type name="QDomText"> - <modify-function signature="nodeType()const" remove="all"/> - </value-type> + <value-type name="QDomText" /> <object-type name="QXmlParseException"/> -<!-- These are defined in QtCore - <value-type name="QXmlStreamAttribute"/> - <value-type name="QXmlStreamAttributes"/> - - <value-type name="QXmlStreamNamespaceDeclaration"/> - <value-type name="QXmlStreamNotationDeclaration"/> - <value-type name="QXmlStreamEntityDeclaration"/> ---> - <value-type name="QXmlAttributes"/> <object-type name="QXmlNamespaceSupport"/> @@ -309,7 +270,11 @@ </modify-argument> <inject-code class="target" position="end"> QXmlInputSource* _qxmlinputsource_arg_ = 0; + + PyThreadState* _save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS %RETURN_TYPE %0 = %CPPSELF.%FUNCTION_NAME(%1, %2, _qxmlinputsource_arg_); + PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS + %PYARG_0 = Shiboken::makeTuple(%0, _qxmlinputsource_arg_); </inject-code> </modify-function> @@ -332,7 +297,9 @@ </modify-argument> <inject-code class="target" position="end"> QXmlInputSource* _qxmlinputsource_arg_ = 0; + PyThreadState* _save = PyEval_SaveThread(); // Py_BEGIN_ALLOW_THREADS %RETURN_TYPE %0 = %CPPSELF.%TYPE::%FUNCTION_NAME(%1, %2, _qxmlinputsource_arg_); + PyEval_RestoreThread(_save); // Py_END_ALLOW_THREADS %PYARG_0 = Shiboken::makeTuple(%0, _qxmlinputsource_arg_); </inject-code> </modify-function> @@ -340,16 +307,6 @@ <object-type name="QXmlInputSource"/> <object-type name="QXmlLocator"/> -<!-- These are defined already in QtCore - <object-type name="QXmlStreamReader"> - <enum-type name="Error" /> - <enum-type name="TokenType" /> - </object-type> - - <object-type name="QXmlStreamWriter"> - </object-type> ---> - <object-type name="QXmlReader"> <modify-function signature="parse(const QXmlInputSource*)"> <modify-argument index="1" invalidate-after-use="yes"/> @@ -452,9 +409,5 @@ </inject-code> </modify-function> </object-type> - - <suppress-warning text="Shadowing: QDomNode::attributes() const and QDomElement::attributes() const"/> - <suppress-warning text="Shadowing: QDomNode::nodeType() const and QDomElement::nodeType() const"/> - </typesystem> |