copy all toXML() from master commit 4b82c3a0c4 into the current branch, because the new concept will be used only for user properties

This commit is contained in:
Martin Marmsoler
2021-03-07 10:09:45 +01:00
parent 058824f29a
commit 5d3710c4b2
26 changed files with 267 additions and 294 deletions

View File

@@ -90,12 +90,12 @@ bool BorderProperties::operator!=(const BorderProperties &bp) {
\~French Element XML auquel seront ajoutes des attributs
*/
void BorderProperties::toXmlPriv(QDomElement& e) const {
e.appendChild(QETXML::createXmlProperty("cols", columns_count));
e.appendChild(QETXML::createXmlProperty("colsize", columns_width));
e.appendChild(QETXML::createXmlProperty("rows", rows_count));
e.appendChild(QETXML::createXmlProperty("rowsize", rows_height));
e.appendChild(QETXML::createXmlProperty("displayrows", display_rows));
e.appendChild(QETXML::createXmlProperty("displaycols", display_columns));
e.setAttribute("cols", columns_count);
e.setAttribute("colsize", QString("%1").arg(columns_width));
e.setAttribute("rows", rows_count);
e.setAttribute("rowsize", QString("%1").arg(rows_height));
e.setAttribute("displaycols", display_columns ? "true" : "false");
e.setAttribute("displayrows", display_rows ? "true" : "false");
}
/*!RETURNS True