aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlxmllistmodel
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-18 15:37:35 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-19 15:00:26 +0200
commit47b7bb33463cd45f6c67020d0c64f309010db1bb (patch)
tree2a5b59e93a94dbdf1aed080050fc0cec5ed1b915 /src/qmlxmllistmodel
parentb627b4e51b6fb4f01e628021fc0367fe05347675 (diff)
Fix some spelling errors in translated messages and comments
Pick-to: 6.2 Change-Id: I34869a9f6aa8cf0e4eadbd2fbeb6d6aca52f9ca7 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlxmllistmodel')
-rw-r--r--src/qmlxmllistmodel/qqmlxmllistmodel.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/qmlxmllistmodel/qqmlxmllistmodel.cpp b/src/qmlxmllistmodel/qqmlxmllistmodel.cpp
index af8f434c07..2249eaeac5 100644
--- a/src/qmlxmllistmodel/qqmlxmllistmodel.cpp
+++ b/src/qmlxmllistmodel/qqmlxmllistmodel.cpp
@@ -112,7 +112,7 @@ void QQmlXmlListModelRole::setName(const QString &name)
/*!
\qmlproperty string QtQml.XmlListModel::XmlListModelRole::elementName
- The name of the xml element, or a path to the xml element, that will be
+ The name of the XML element, or a path to the XML element, that will be
used to read the data. The element must actually contain text.
Optionally the \l attributeName property can be specified to extract
@@ -120,8 +120,8 @@ void QQmlXmlListModelRole::setName(const QString &name)
//! [basic-example]
For example, the following model has a role named "title", which reads the
- data from the xml element \c {<title>}. It also has another role named
- "timestamp", which uses the same xml element \c {<title>}, but reads its
+ data from the XML element \c {<title>}. It also has another role named
+ "timestamp", which uses the same XML element \c {<title>}, but reads its
"created" attribute to extract the actual value.
\qml
@@ -147,7 +147,7 @@ void QQmlXmlListModelRole::setName(const QString &name)
//! [empty-elementName-example]
When the \l attributeName is specified, the \l elementName can be left
- empty. In this case the attribute of the top level xml element of the query
+ empty. In this case the attribute of the top level XML element of the query
will be read.
For example, if you have the following xml document:
@@ -224,13 +224,13 @@ QString QQmlXmlListModelRole::elementName() const
void QQmlXmlListModelRole::setElementName(const QString &name)
{
if (name.startsWith(QLatin1Char('/'))) {
- qmlWarning(this) << tr("An xml element must not start with '/'");
+ qmlWarning(this) << tr("An XML element must not start with '/'");
return;
} else if (name.endsWith(QLatin1Char('/'))) {
- qmlWarning(this) << tr("An xml element must not end with '/'");
+ qmlWarning(this) << tr("An XML element must not end with '/'");
return;
} else if (name.contains(QStringLiteral("//"))) {
- qmlWarning(this) << tr("An xml element must not contain \"//\"");
+ qmlWarning(this) << tr("An XML element must not contain \"//\"");
return;
}
@@ -243,14 +243,14 @@ void QQmlXmlListModelRole::setElementName(const QString &name)
/*!
\qmlproperty string QtQml.XmlListModel::XmlListModelRole::attributeName
- The attribute of the xml element that will be used to read the data.
- The xml element is specified by \l elementName property.
+ The attribute of the XML element that will be used to read the data.
+ The XML element is specified by \l elementName property.
\include qqmlxmllistmodel.cpp basic-example
\include qqmlxmllistmodel.cpp empty-elementName-example
- If you do not need to parse any attributes for the specified xml element,
+ If you do not need to parse any attributes for the specified XML element,
simply leave this property blank.
\sa elementName