Element editor : a copied/pasted terminal part have a new uuid.

This commit is contained in:
Claveau Joshua
2020-08-12 15:45:48 +02:00
parent 1805ef300e
commit 86766a9090
7 changed files with 178 additions and 106 deletions

View File

@@ -144,6 +144,11 @@ void PartTerminal::setName(QString& name)
emit nameChanged();
}
void PartTerminal::setNewUuid()
{
d->m_uuid = QUuid::createUuid();
}
/**
Met a jour la position du second point en fonction de la position et de
l'orientation de la borne.

View File

@@ -72,7 +72,8 @@ class PartTerminal : public CustomElementGraphicPart
Qet::Orientation orientation() const {return d->m_orientation;}
void setOrientation(Qet::Orientation ori);
void setName(QString& name);
void setName(QString& name);
void setNewUuid();
private:
void updateSecondPoint();