mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-29 23:40:51 +01:00
go on with the work
This commit is contained in:
@@ -161,6 +161,20 @@ bool PartLine::fromXml(const QDomElement &qde) {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool PartLine::valideXml(QDomElement& element) const {
|
||||
if (propertyDouble(element, "x1") ||
|
||||
propertyDouble(element, "y1") ||
|
||||
propertyDouble(element, "x2") ||
|
||||
propertyDouble(element, "y2") ||
|
||||
propertyString(element, "end1") ||
|
||||
propertyString(element, "end2") ||
|
||||
propertyDouble(element, "length1") ||
|
||||
propertyDouble(element, "length2") )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief PartLine::itemChange
|
||||
* @param change
|
||||
|
||||
Reference in New Issue
Block a user