terminal strip can be saved to xml

This commit is contained in:
joshua
2021-05-01 20:04:40 +02:00
parent 36068abce7
commit 89f3ce1eb3
5 changed files with 142 additions and 0 deletions

View File

@@ -913,6 +913,16 @@ QDomDocument QETProject::toXml()
appended_diagram.toElement().setAttribute("order", order_num ++);
}
//Write terminal strip to xml
if (m_terminal_strip_vector.count())
{
auto xml_strip = xml_doc.createElement(QStringLiteral("terminal_strips"));
for (auto &strip : m_terminal_strip_vector) {
xml_strip.appendChild(strip->toXml(xml_doc));
}
project_root.appendChild(xml_strip);
}
// Write the elements collection.
project_root.appendChild(m_elements_collection->root().cloneNode(true));