Element editor : add terminal properties editable

This commit is contained in:
joshua
2021-02-16 21:39:09 +01:00
parent 444f62a1f8
commit be2067148e
4 changed files with 65 additions and 9 deletions

View File

@@ -115,7 +115,7 @@ QDomElement ElementData::kindInfoToXml(QDomDocument &document)
auto xml_func = document.createElement("kindInformation");
xml_func.setAttribute("name", "function");
auto func_txt = document.createTextNode(terminalFunctionToString(m_terminal_function));
xml_type.appendChild(xml_func);
xml_func.appendChild(func_txt);
returned_elmt.appendChild(xml_func);
}
@@ -313,7 +313,7 @@ QString ElementData::terminalTypeToString(ElementData::TerminalType type)
case ElementData::Sectional:
return QString("sectional");
case ElementData::Diode:
return QString("didoe");
return QString("diode");
}
}