Fix issue that conductors where connected wrong. This was, because instead of reusing the id's stored in the Terminal, new id's where created

This commit is contained in:
Martin Marmsoler
2020-10-08 19:05:30 +02:00
parent 52f886e34b
commit 0cc6558281
4 changed files with 8 additions and 20 deletions

View File

@@ -113,7 +113,7 @@ class Element : public QetGraphicsItem // TODO: derive from propertiesInterface!
void editProperty() override;
static bool valideXml(QDomElement &);
virtual bool fromXml(QDomElement &, QHash<int, Terminal *> &, bool = false);
virtual QDomElement toXml(QDomDocument &, QHash<Terminal *, int> &) const;
virtual QDomElement toXml(QDomDocument &) const;
QUuid uuid() const;
int orientation() const;