From 9785ffe94385eab2a0f9f0be3e855a0b8ad8d452 Mon Sep 17 00:00:00 2001 From: Samuel Gaist Date: Sat, 27 Jan 2024 22:09:13 +0100 Subject: [PATCH] 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 --- src/xml/dom/qdom.h | 4 ++-- 1 file 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);