Fix bug where undoing+redoing AddWire multiple times crashes
This commit is contained in:
6
Part.h
6
Part.h
@@ -9,7 +9,7 @@
|
||||
class Connector;
|
||||
class Logic;
|
||||
|
||||
class Part : public QGraphicsItem
|
||||
class Part : protected QGraphicsItem
|
||||
{
|
||||
public:
|
||||
friend class Connector;
|
||||
@@ -17,6 +17,7 @@ public:
|
||||
friend class Logic;
|
||||
friend class AddPart;
|
||||
friend class RemoveParts;
|
||||
friend class AddWire;
|
||||
friend class RemoveWire;
|
||||
friend class CopyParts;
|
||||
|
||||
@@ -45,6 +46,9 @@ public:
|
||||
|
||||
PartType::PartType partType();
|
||||
|
||||
QPointF getPos() const;
|
||||
void setPos(QPointF pos);
|
||||
|
||||
void addInputs(int amount);
|
||||
void addOutputs(int amount);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user