mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 17:50:52 +01:00
Bug fix : When user try to connect two differents potential together, the dialog box display a weird numbers of wire in the potential
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4218 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -109,7 +109,7 @@ class Element : public QetGraphicsItem {
|
||||
virtual void unlinkElement (Element *) {}
|
||||
virtual void initLink (QETProject *);
|
||||
QList<Element *> linkedElements ();
|
||||
virtual int linkType() const {return link_type_;} // @return the linkable type
|
||||
virtual kind linkType() const {return link_type_;} // @return the linkable type
|
||||
void newUuid() {uuid_ = QUuid::createUuid();} //create new uuid for this element
|
||||
|
||||
//ATTRIBUTES related to linked element
|
||||
|
||||
@@ -42,7 +42,7 @@ class GhostElement : public CustomElement {
|
||||
// methods
|
||||
public:
|
||||
virtual bool fromXml(QDomElement &, QHash<int, Terminal *> &, bool = false);
|
||||
virtual int linkType() const {return Simple;}
|
||||
virtual kind linkType() const {return Simple;}
|
||||
|
||||
protected:
|
||||
QRectF minimalBoundingRect() const;
|
||||
|
||||
Reference in New Issue
Block a user