Terminal strip can now be edited and managed by undo command

This commit is contained in:
joshua
2021-05-05 22:34:11 +02:00
parent e0579b3040
commit 580ebe8b97
9 changed files with 215 additions and 27 deletions

View File

@@ -80,6 +80,18 @@ bool TerminalStripData::fromXml(const QDomElement &xml_element)
return true;
}
TerminalStripData &TerminalStripData::operator=(const TerminalStripData &other)
{
m_installation = other.m_installation;
m_location = other.m_location;
m_name = other.m_name;
m_comment = other.m_comment;
m_description = other.m_description;
m_uuid = other.m_uuid;
return *this;
}
QDomElement TerminalStripData::infoToXml(QDomDocument &xml_doc, const QString &name, const QString &value)
{
auto xml_elmt = xml_doc.createElement("information");