mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Revamp struct sequenceStruct to class sequentialNumbers.
Element now use methods (toXml and fromXml) of sequentialNumbers to store and load sequential. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4803 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -254,3 +254,20 @@ bool QETXML::writeXmlFile(const QDomDocument &xml_document, const QString &file_
|
||||
|
||||
return(true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief QETXML::textToDomElement
|
||||
* Return a QDomElement, created from @document, with tag name @tag_name and text @value.
|
||||
* @param document
|
||||
* @param tag_name
|
||||
* @param value
|
||||
* @return
|
||||
*/
|
||||
QDomElement QETXML::textToDomElement(QDomDocument &document, QString tag_name, QString value)
|
||||
{
|
||||
QDomElement element = document.createElement(tag_name);
|
||||
QDomText text = document.createTextNode(value);
|
||||
|
||||
element.appendChild(text);
|
||||
return element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user