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

int ContactListModelItem::row (  ) const

Get this item's position within the parent node

Returns:
int

Definition at line 672 of file contactlistmodelitem.cpp.

Referenced by ContactList::forwardDataChanged(), ContactList::parent(), and ContactList::slotContactMoved().

{
  if( itemType_ == ItemRoot || ! parentNode_ || parentNode_->childItems_.isEmpty() )
  {
    kmWarning() << "Called row() on a root item or an item with invalid parent! Item:" << this;
    return 0;
  }

  return parentNode_->childItems_.indexOf( const_cast<ContactListModelItem*>( this ) );
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index