go on with the work

This commit is contained in:
Martin Marmsoler
2020-08-25 20:14:38 +02:00
parent a10709157d
commit c5f1705745
40 changed files with 520 additions and 258 deletions

View File

@@ -128,13 +128,13 @@ bool BorderProperties::fromXml(const QDomElement &e) {
return true;
}
bool BorderProperties::valideXml(QDomElement& e) const {
bool BorderProperties::valideXml(QDomElement& e) {
if (propertyInteger(e, "cols") == PropertyFlags::Success &&
propertyDouble(e, "colsize") == PropertyFlags::Success &&
propertyInteger(e, "rows") == PropertyFlags::Success &&
propertyDouble(e, "rowsize") == PropertyFlags::Success &&
propertyBool(e, "displaycols") == PropertyFlags::Success &&
if (propertyInteger(e, "cols") == PropertyFlags::Success ||
propertyDouble(e, "colsize") == PropertyFlags::Success ||
propertyInteger(e, "rows") == PropertyFlags::Success ||
propertyDouble(e, "rowsize") == PropertyFlags::Success ||
propertyBool(e, "displaycols") == PropertyFlags::Success ||
propertyBool(e, "displayrows") == PropertyFlags::Success)
return true;
}