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:
blacksun
2016-12-08 15:06:46 +00:00
parent 18df62cea1
commit 9f014d55af
11 changed files with 196 additions and 113 deletions

View File

@@ -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;
}