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

Method selectExecutable

src/configdialog.cpp:391–400  ·  view source on GitHub ↗

* @brief ConfigDialog::selectExecutable pop-up to choose an executable. * @return */

Source from the content-addressed store, hash-verified

389 * @return
390 */
391auto ConfigDialog::selectExecutable() -> QString {
392 QFileDialog dialog(this);
393 dialog.setFileMode(QFileDialog::ExistingFile);
394 dialog.setOption(QFileDialog::ReadOnly);
395 if (dialog.exec()) {
396 return dialog.selectedFiles().constFirst();
397 }
398
399 return {};
400}
401
402/**
403 * @brief ConfigDialog::selectFolder pop-up to choose a folder.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected