A dialog window for managing general Data Explorer settings.
Definition at line 12 of file DataExplorerSettingsDialog.h.
#include <DataExplorerSettingsDialog.h>
◆ DataExplorerSettingsDialog()
| DataExplorerSettingsDialog::DataExplorerSettingsDialog |
( |
QDialog * | parent = nullptr | ) |
|
|
explicit |
Definition at line 11 of file DataExplorerSettingsDialog.cpp.
12 : QDialog(parent)
13{
14 setupUi(this);
15
16 QSettings settings;
17 this->gmshPathEdit->setText(
18 settings.value("DataExplorerGmshPath").toString());
19}
◆ ~DataExplorerSettingsDialog()
| DataExplorerSettingsDialog::~DataExplorerSettingsDialog |
( |
| ) |
|
|
overridedefault |
◆ accept
| void DataExplorerSettingsDialog::accept |
( |
| ) |
|
|
overrideprivateslot |
Instructions if the OK-Button has been pressed.
Definition at line 35 of file DataExplorerSettingsDialog.cpp.
36{
37 QSettings settings;
38 settings.setValue("DataExplorerGmshPath", this->gmshPathEdit->text());
39 this->done(QDialog::Accepted);
40}
◆ on_gmshPathButton_clicked
| void DataExplorerSettingsDialog::on_gmshPathButton_clicked |
( |
| ) |
|
|
privateslot |
Definition at line 23 of file DataExplorerSettingsDialog.cpp.
24{
25 QSettings settings;
26 QString file_name = QFileDialog::getOpenFileName(
27 this, "Select path for GMSH...",
28 settings.value("DataExplorerGmshPath").toString(), "*gmsh*");
29 if (!file_name.isEmpty())
30 {
31 this->gmshPathEdit->setText(file_name);
32 }
33}
◆ reject
| void DataExplorerSettingsDialog::reject |
( |
| ) |
|
|
inlineoverrideprivateslot |
The documentation for this class was generated from the following files: