MCPcopy Create free account
hub / github.com/deskflow/deskflow / browseConfigFile

Method browseConfigFile

src/lib/gui/dialogs/ServerConfigDialog.cpp:474–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474bool ServerConfigDialog::browseConfigFile()
475{
476 //: %1 is replaced with the application names
477 //: (*.conf) and (*.*) should not be translated
478 const auto deskflowConfigFilter = tr("%1 Configurations (*.conf);;All files (*.*)");
479
480 QString fileName =
481 QFileDialog::getOpenFileName(this, tr("Browse for a config file"), "", deskflowConfigFilter.arg(kAppName));
482
483 if (!fileName.isEmpty()) {
484 ui->lineConfigFile->setText(fileName);
485 serverConfig().setConfigFile(ui->lineConfigFile->text());
486 onChange();
487 return true;
488 }
489
490 return false;
491}
492
493bool ServerConfigDialog::addComputer(const QString &clientName, bool doSilent)
494{

Callers

nothing calls this directly

Calls 4

setTextMethod · 0.80
setConfigFileMethod · 0.80
isEmptyMethod · 0.45
textMethod · 0.45

Tested by

no test coverage detected