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:
rootIndex()

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().

{
    Q_D(QAbstractItemView);
    d->root = index;
    d->doDelayedItemsLayout();
}


Generated by  Doxygen 1.6.0   Back to index