| 401 | |
| 402 | |
| 403 | void GrepOutputView::collapseAllItems() |
| 404 | { |
| 405 | // Collapse everything |
| 406 | resultsTreeView->collapseAll(); |
| 407 | |
| 408 | if (resultsTreeView->model()) { |
| 409 | // Now reopen the first children, which correspond to the files. |
| 410 | resultsTreeView->expand(resultsTreeView->model()->index(0, 0)); |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | void GrepOutputView::expandAllItems() |
| 415 | { |