Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

QModelIndex QModelIndex::sibling ( int  row,
int  column 
) const [inline]

Returns the sibling at row and column or an invalid QModelIndex if there is no sibling at this position.

See also:
parent() child()

Definition at line 307 of file qabstractitemmodel.h.

References QAbstractItemModel::index(), QAbstractItemModel::parent(), and QModelIndex().

Referenced by QDirModel::index(), QTreeView::indexRowSizeHint(), QTreeView::mouseDoubleClickEvent(), QItemSelection::select(), QDirModel::setData(), QPersistentModelIndex::sibling(), and QTreeView::sizeHintForColumn().

{ return m ? m->index(arow, acolumn, m->parent(*this)) : QModelIndex(); }

Generated by  Doxygen 1.6.0   Back to index