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

QTreeWidgetItem * QTreeWidget::itemFromIndex ( const QModelIndex index  )  const [protected]

Returns a pointer to the QTreeWidgetItem assocated with the given index.

Definition at line 2469 of file qtreewidget.cpp.

References QModelIndex::isValid().

{
    Q_D(const QTreeWidget);
    Q_ASSERT(index.isValid());
    return d->model()->item(index);
}


Generated by  Doxygen 1.6.0   Back to index