summaryrefslogtreecommitdiffstats
path: root/src/xml
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2020-03-16 18:41:27 +0100
committerSimon Hausmann <simon.hausmann@qt.io>2020-03-16 18:41:27 +0100
commitff922e7b87de147797fbd759167878aec7625f0c (patch)
treea326819f23e2421723f144522f9362ba608d6bb1 /src/xml
parente464e1eb8eb63c631fb0916c3ea4540a88d8aad3 (diff)
parent75f52bd0ddc4afbd181c14b310d256e3507052d6 (diff)
Merge remote-tracking branch 'origin/5.15' into dev
Conflicts: src/corelib/kernel/qmetatype.cpp Change-Id: I88eb0d3e9c9a38abf7241a51e370c655ae74e38a
Diffstat (limited to 'src/xml')
-rw-r--r--src/xml/doc/src/xml-processing.qdoc4
-rw-r--r--src/xml/dom/qdom.cpp7
2 files changed, 4 insertions, 7 deletions
diff --git a/src/xml/doc/src/xml-processing.qdoc b/src/xml/doc/src/xml-processing.qdoc
index 4dfcbf4722..8ac279f8b6 100644
--- a/src/xml/doc/src/xml-processing.qdoc
+++ b/src/xml/doc/src/xml-processing.qdoc
@@ -72,7 +72,6 @@
\title An Introduction to Namespaces
\target namespaces
- \contentspage XML Processing
\nextpage XML Streaming
Parts of the Qt XML module documentation assume that you are familiar
@@ -211,7 +210,6 @@
\title XML Streaming
\previouspage An Introduction to Namespaces
- \contentspage XML Processing
\nextpage The SAX Interface
Since version 4.3, Qt provides two new classes for reading and
@@ -290,7 +288,6 @@
\title The SAX interface
\previouspage XML Streaming
- \contentspage XML Processing
\nextpage Working with the DOM Tree
SAX is an event-based standard interface for XML parsers.
@@ -520,7 +517,6 @@
\target dom
\previouspage The SAX Interface
- \contentspage XML Processing
DOM Level 2 is a W3C Recommendation for XML interfaces that maps the
constituents of an XML document to a tree structure. The specification
diff --git a/src/xml/dom/qdom.cpp b/src/xml/dom/qdom.cpp
index 39cf0c2653..022de70090 100644
--- a/src/xml/dom/qdom.cpp
+++ b/src/xml/dom/qdom.cpp
@@ -65,6 +65,7 @@
#include <stdio.h>
+#include <limits>
QT_BEGIN_NAMESPACE
@@ -4364,7 +4365,7 @@ void QDomElement::setAttribute(const QString& name, float value)
if (!impl)
return;
QString x;
- x.setNum(value);
+ x.setNum(value, 'g', 8);
IMPL->setAttribute(name, x);
}
@@ -4378,7 +4379,7 @@ void QDomElement::setAttribute(const QString& name, double value)
if (!impl)
return;
QString x;
- x.setNum(value);
+ x.setNum(value, 'g', 17);
IMPL->setAttribute(name, x);
}
@@ -4547,7 +4548,7 @@ void QDomElement::setAttributeNS(const QString& nsURI, const QString& qName, dou
if (!impl)
return;
QString x;
- x.setNum(value);
+ x.setNum(value, 'g', 17);
IMPL->setAttributeNS(nsURI, qName, x);
}