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

void QAbstractItemView::setRootIndex ( const QModelIndex index  )  [virtual, slot, inherited]

Sets the root item to the item at the given index.

See also:

Reimplemented in QListView, QTableView, and QTreeView.

Definition at line 656 of file qabstractitemview.cpp.

Referenced by QAbstractItemView::reset(), QListView::setRootIndex(), QTableView::setRootIndex(), QTreeView::setRootIndex(), and QComboBox::setRootModelIndex().

    d->root = index;

Generated by  Doxygen 1.6.0   Back to index