From 18e83ffe84b62fe8a659f4885f5ca8b8b3e31f5b Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Mon, 23 May 2022 14:08:17 +0200 Subject: [PATCH] Remove a misleading sentence from QDomDocument::setContent() doc QXmlReader has been replaced by QXmlStreamReader and, either way, there is currently no way to over-ride the purging of space-only nodes. Task-number: QTBUG-103753 Change-Id: I7bae72d81f1b2503f93c691081137b4f60eeadda Reviewed-by: Fabian Kosmale Reviewed-by: Sona Kurazyan (cherry picked from commit 80f8e380db8c2e9b64409eb319c96a0c2c84c886) Reviewed-by: Qt Cherry-pick Bot --- src/xml/dom/qdom.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp index c191a2f27cf..486894019c7 100644 --- a/src/xml/dom/qdom.cpp +++ b/src/xml/dom/qdom.cpp @@ -6117,9 +6117,7 @@ bool QDomDocument::setContent(const QString& text, bool namespaceProcessing, QSt empty string if the element or attribute has no prefix. Text nodes consisting only of whitespace are stripped and won't - appear in the QDomDocument. If this behavior is not desired, - one can use the setContent() overload that allows a QXmlReader to be - supplied. + appear in the QDomDocument. If \a namespaceProcessing is false, the functions QDomNode::prefix(), QDomNode::localName() and