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

int QTreeWidget::indexOfTopLevelItem ( QTreeWidgetItem item  ) 

Returns the index of the given top-level item, or -1 if the item cannot be found.

Definition at line 1939 of file qtreewidget.cpp.

{
    Q_D(QTreeWidget);
    return d->model()->tree.indexOf(item);
}


Generated by  Doxygen 1.6.0   Back to index