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>
bb10
Samuel Gaist 2024-01-27 22:09:13 +01:00
parent bd5ae42cf8
commit 9785ffe943
1 changed files with 2 additions and 2 deletions

View File

@ -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);