mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-15 22:49:57 +01:00
Bug fix: Paste element, make new uuid for the element.
In previous version, uuid are same whith copied and paste element. git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2784 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -105,6 +105,8 @@ class Element : public QetGraphicsItem {
|
||||
virtual void unlinkElement(Element *elmt) {}
|
||||
void initLink(QETProject *);
|
||||
QList<Element *> linkedElements () const;
|
||||
//create new uuid for this element
|
||||
void newUuid() {uuid_ = QUuid::createUuid();}
|
||||
|
||||
/**
|
||||
Draw this element
|
||||
|
||||
Reference in New Issue
Block a user