* @brief MainWindow::selectFirstFile select the first possible file in the * tree */
| 805 | * tree |
| 806 | */ |
| 807 | void MainWindow::selectFirstFile() { |
| 808 | QModelIndex index = proxyModel.mapFromSource( |
| 809 | model.setRootPath(QtPassSettings::getPassStore())); |
| 810 | index = firstFile(index); |
| 811 | ui->treeView->setCurrentIndex(index); |
| 812 | } |
| 813 | |
| 814 | /** |
| 815 | * @brief MainWindow::firstFile return location of first possible file |
nothing calls this directly
no outgoing calls
no test coverage detected