MCPcopy Create free account
hub / github.com/IJHack/QtPass / selectFirstFile

Method selectFirstFile

src/mainwindow.cpp:807–812  ·  view source on GitHub ↗

* @brief MainWindow::selectFirstFile select the first possible file in the * tree */

Source from the content-addressed store, hash-verified

805 * tree
806 */
807void 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected