MCPcopy Create free account
hub / github.com/QNapi/qnapi / select7zPath

Method select7zPath

gui/src/forms/frmoptions.cpp:127–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127void frmOptions::select7zPath() {
128 QString path7z = QFileDialog::getOpenFileName(
129 this, tr("Specify the path for 7z executable"),
130 QFileInfo(ui.le7zPath->text()).path());
131 if (!path7z.isEmpty()) {
132 if (!QFileInfo(path7z).isExecutable())
133 QMessageBox::warning(
134 this, tr("Invalid path"),
135 tr("Defined path to 7z executable is invalid. If you can not "
136 "locate 7z executable, try installing p7zip-full package."));
137 else
138 ui.le7zPath->setText(path7z);
139 }
140}
141
142void frmOptions::leTmpPathChanged() {
143 QFileInfo f(ui.leTmpPath->text());

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected