void Pin::copy(const Pin &rhs) { setPen(rhs.pen()); attributes = rhs.attributes; hidden = rhs.hidden; _length = rhs._length; _bubble = rhs._bubble; bubbleToggle = rhs.bubbleToggle; clock = rhs.clock; position = rhs.position; // pinname and pinnumber depend on bubble and clock so they need to be assigned after bubble and clock pinname = rhs.pinname; pinnumber = rhs.pinnumber; rebuild(); }