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

void QTreeWidget::sortItems ( int  column,
Qt::SortOrder  order 

Sorts the items in the widget in the specified order by the values in the given column.

Definition at line 2120 of file qtreewidget.cpp.

References QTreeView::header(), and QHeaderView::setSortIndicator().

    header()->setSortIndicator(column, order);
    d->model()->sort(column, order);

Generated by  Doxygen 1.6.0   Back to index