Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void CNItem::removeItem (  )  [virtual, slot, inherited]

Remove the item and associated nodes. It appends the item to the ICNDocument's delete list, so you must call ICNDocument::flushDeleteList() after calling this (and possible ICNDocument::clearDeleteList() befor calling it) The virtual function void handleRemove() is called to allow any child classes to clear up any neccessary data (which doesn't do anything by default), before CNItem does the rest

Reimplemented from Item.

Reimplemented in Component, and ECSubcircuit.

Definition at line 160 of file cnitem.cpp.

References CNItem::updateConnectorPoints().

Referenced by Component::removeItem().

{
      if (b_deleted)
            return;
      
      const TextMap::iterator textMapEnd = m_textMap.end();
      for ( TextMap::iterator it = m_textMap.begin(); it != textMapEnd; ++it )
            it.data()->setCanvas(0l);
      
      Item::removeItem();
      updateConnectorPoints(false);
}


Generated by  Doxygen 1.6.0   Back to index