Fix compilation warning (clang and gcc)

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5301 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2018-04-05 18:49:28 +00:00
parent 5bfa58ad55
commit fa547a34c8
17 changed files with 35 additions and 45 deletions

View File

@@ -78,22 +78,6 @@ void ConductorTextItem::fromXml(const QDomElement &e) {
}
}
/**
* @brief ConductorTextItem::toXml
* Export the properties of this text in the attribute of the xml element given in parameter
* The properties exported are position and rotation (only if moved or rotate by user)
* @param xml
*/
void ConductorTextItem::toXml(QDomElement &xml) const {
if (moved_by_user_) {
xml.setAttribute("userx", QString("%1").arg(pos().x()));
xml.setAttribute("usery", QString("%1").arg(pos().y()));
}
if (rotate_by_user_) {
xml.setAttribute("rotation", QString("%1").arg(rotation()));
}
}
/**
@return true si ce champ de texte a ete explictement deplace par
l'utilisateur, false sinon