mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-21 08:40:53 +01:00
terminal strip can be saved to xml
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user