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

void QTreeWidget::scrollToItem ( const QTreeWidgetItem item,
QAbstractItemView::ScrollHint  hint = EnsureVisible 
) [slot]

Ensures that the item is visible, scrolling the view if necessary using the specified hint.

Definition at line 2342 of file qtreewidget.cpp.

References QAbstractItemModel::index(), QModelIndex::isValid(), QModelIndex::model(), and QTreeView::scrollTo().

    QModelIndex index = d->model()->index(const_cast<QTreeWidgetItem*>(item), 0);
    QTreeView::scrollTo(index, hint);

Generated by  Doxygen 1.6.0   Back to index