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

Method on_treeView_doubleClicked

src/mainwindow.cpp:404–411  ·  view source on GitHub ↗

* @brief MainWindow::on_treeView_doubleClicked when doubleclicked on * TreeViewItem, open the edit Window * @param index */

Source from the content-addressed store, hash-verified

402 * @param index
403 */
404void MainWindow::on_treeView_doubleClicked(const QModelIndex &index) {
405 QFileInfo fileOrFolder =
406 model.fileInfo(proxyModel.mapToSource(ui->treeView->currentIndex()));
407
408 if (fileOrFolder.isFile()) {
409 editPassword(getFile(index, true));
410 }
411}
412
413/**
414 * @brief MainWindow::deselect clear the selection, password and copy buffer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected