Skip to content
Snippets Groups Projects
Commit c37bd485 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

xml --> XML

parent be6fe020
No related branches found
No related tags found
1 merge request!1360GUI: serialize only selected index for "ComboProperty"
......@@ -143,7 +143,7 @@ public:
{
const uint typeIndex = static_cast<uint>(Catalog::type(m_p.get()));
XML::writeAttribute(w, XML::Attrib::type, typeIndex);
// The next line allows to see the name of item type in xml. May be skipped while reading.
// The next line allows to see the name of item type in XML. May be skipped while reading.
XML::writeAttribute(w, XML::Attrib::name,
Catalog::uiInfo(Catalog::type(m_p.get())).menuEntry);
XML::writeAttribute(w, XML::Attrib::selection_version, uint(1));
......
......@@ -46,7 +46,7 @@ public:
void emplace_back(InstrumentItem* item); // TODO Qt6 emplace
//! Inserts a deep copy (also of any non xml data in a pointwise axis)
//! Inserts a deep copy (also of any non XML data in a pointwise axis)
//! The id will not be copied, but a new unique one will be created
//! Returns the newly created instrument.
InstrumentItem* insertItemCopy(const InstrumentItem& source);
......
......@@ -259,7 +259,7 @@ QString ComboProperty::label() const
void ComboProperty::writeTo(QXmlStreamWriter* w) const
{
XML::writeAttribute(w, XML::Attrib::index, currentIndex());
// The next line allows to see the entry name in xml. It may be skipped while reading.
// The next line allows to see the entry name in XML. It may be skipped while reading.
XML::writeAttribute(w, XML::Attrib::name, currentValue());
XML::writeAttribute(w, XML::Attrib::version, uint(1));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment