Logo Search packages:      
Sourcecode: ktechlab version File versions

int Item::level (  )  const [inherited]

Returns the number of items away from the top item this is (parent-wise). Returns 0 if has no parent.

Definition at line 410 of file item.cpp.

Referenced by FlowCode::addCodeBranch(), CNItemGroup::addItem(), ICNDocument::canConnect(), FlowContainer::childAdded(), CNItem::createNode(), FlowContainer::drawShape(), FlowPart::endPart(), ICNDocument::flowContainer(), FlowCode::generateMicrobe(), FlowCode::isValidBranch(), Node::setParentItem(), and Item::setParentItem().

      return p_parentItem ? p_parentItem->level()+1 : 0;

Generated by  Doxygen 1.6.0   Back to index