| 407 | } |
| 408 | |
| 409 | void AddCompilerWizard::selectPythonPath() { |
| 410 | #ifdef Q_OS_WIN32 |
| 411 | QString location = QFileDialog::getOpenFileName(this, tr("Select Interpreter\'s Location"), |
| 412 | QDir::rootPath(), "python (python.exe)"); |
| 413 | #else |
| 414 | QString location = QFileDialog::getOpenFileName(this, tr("Select Interpreter\'s Location"), |
| 415 | QDir::rootPath(), "python (python)"); |
| 416 | #endif |
| 417 | |
| 418 | if (! location.isEmpty()) { |
| 419 | location = location.replace('/', QDir::separator()); |
| 420 | ui->pythonPath->setText(location); |
| 421 | } |
| 422 | } |
| 423 | |
| 424 | void AddCompilerWizard::accept() { |
| 425 | if (ui->customRadioButton->isChecked()) { |
nothing calls this directly
no outgoing calls
no test coverage detected