diff options
author | Samuel Gaist <samuel.gaist@idiap.ch> | 2024-01-27 22:09:13 +0100 |
---|---|---|
committer | Samuel Gaist <samuel.gaist@idiap.ch> | 2024-01-31 18:02:43 +0100 |
commit | 9785ffe94385eab2a0f9f0be3e855a0b8ad8d452 (patch) | |
tree | d7d3ddbb1019551a54375715e6103110c8c1324c /src/xml/dom | |
parent | bd5ae42cf86857fa08c2607eb8c9e434317374f6 (diff) |
xml: add parameter name to toString and toByteArray for PySide6
This change will allow Shiboken to generate proper bindings as otherwise
the python code will get an anonymous parameter which is not really
helpful for understanding the role of the parameter nor explicitly set
it.
Fixes: QTBUG-121468
Change-Id: I02943223eef99d815ef68e9603736cc064843fb0
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/xml/dom')
-rw-r--r-- | src/xml/dom/qdom.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml/dom/qdom.h b/src/xml/dom/qdom.h index 7333b60774..303abdc5aa 100644 --- a/src/xml/dom/qdom.h +++ b/src/xml/dom/qdom.h @@ -339,8 +339,8 @@ public: ParseResult setContent(QXmlStreamReader *reader, ParseOptions options = ParseOption::Default); // Qt extensions - QString toString(int = 1) const; - QByteArray toByteArray(int = 1) const; + QString toString(int indent = 1) const; + QByteArray toByteArray(int indent = 1) const; private: ParseResult setContentImpl(const QByteArray &data, ParseOptions options); |