Add "browse" button using Qt's file browser to settings dialog
This commit is contained in:
parent
1dee4bb60d
commit
932376c6e0
3 changed files with 26 additions and 8 deletions
|
@ -189,3 +189,12 @@ void SettingsDialog::on_pushButton_clicked()
|
|||
|
||||
ui->javaPathTextBox->setText(paths.at(0));
|
||||
}
|
||||
|
||||
void SettingsDialog::on_btnBrowse_clicked()
|
||||
{
|
||||
QString dir = QFileDialog::getOpenFileName(this, tr("Find Java executable"));
|
||||
if(!dir.isNull())
|
||||
{
|
||||
ui->javaPathTextBox->setText(dir);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue