Forgoten revert ToXml()

This commit is contained in:
joshua
2021-03-09 18:43:03 +01:00
parent 6e17996d37
commit 001e93bc6f
3 changed files with 2 additions and 14 deletions

View File

@@ -499,8 +499,8 @@ void CustomElementGraphicPart::stylesToXml(QDomElement &qde) const
else if (_color == HTMLGrayBlackColor) css_like_styles += "HTMLGrayBlack";
else if (_color == NoneColor) css_like_styles += "none";
qde.appendChild(QETXML::createXmlProperty("style", css_like_styles));
qde.appendChild(QETXML::createXmlProperty("antialias", _antialiased ? "true" : "false"));
qde.setAttribute("style", css_like_styles);
qde.setAttribute("antialias", _antialiased ? "true" : "false");
}

View File

@@ -63,17 +63,6 @@ Conductor *ConductorTextItem::parentConductor() const
return(parent_conductor_);
}
void ConductorTextItem::toXml(QDomElement& e) {
if(moved_by_user_)
{
e.appendChild(QETXML::createXmlProperty("userx", pos().x()));
e.appendChild(QETXML::createXmlProperty("usery", pos().y()));
}
if(rotate_by_user_)
e.appendChild(QETXML::createXmlProperty("rotation", rotation()));
}
/**
@brief ConductorTextItem::fromXml
Read the properties stored in the xml element given in parameter

View File

@@ -42,7 +42,6 @@ class ConductorTextItem : public DiagramTextItem
enum { Type = UserType + 1006 };
Conductor *parentConductor() const;
void fromXml(const QDomElement &) override;
void toXml(QDomElement& e);
int type() const override { return Type; }
virtual bool wasMovedByUser() const;
virtual bool wasRotateByUser() const;