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