mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-04 19:40:53 +01:00
Element editor : a copied/pasted terminal part have a new uuid.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user