17 #include <QFileDialog>
28 this->gmshPathEdit->setText(
29 settings.value(
"DataExplorerGmshPath").toString());
37 QString file_name = QFileDialog::getOpenFileName(
38 this,
"Select path for GMSH...",
39 settings.value(
"DataExplorerGmshPath").toString(),
"*gmsh*");
40 if (!file_name.isEmpty())
42 this->gmshPathEdit->setText(file_name);
49 settings.setValue(
"DataExplorerGmshPath", this->gmshPathEdit->text());
50 this->done(QDialog::Accepted);
Definition of the DataExplorerSettingsDialog class.
Definition of the OGSError class.
void accept() override
Instructions if the OK-Button has been pressed.
void on_gmshPathButton_clicked()
DataExplorerSettingsDialog(QDialog *parent=nullptr)
~DataExplorerSettingsDialog() override