25 this->thicknessEdit->setValidator(thickness_validator);
30 if (this->nameEdit->text().isEmpty())
34 else if (this->thicknessEdit->text().isEmpty() ||
35 this->thicknessEdit->text().toDouble() <= 0)
41 this->done(QDialog::Accepted);
47 this->done(QDialog::Rejected);
Definition of the AddLayerToMeshDialog class.
Definition of the OGSError class.
Implementation of the StrictDoubleValidator class.
void accept() override
Instructions if the OK-Button has been pressed.
AddLayerToMeshDialog(QDialog *parent=nullptr)
void reject() override
Instructions if the Cancel-Button has been pressed.
static void box(const QString &e)
A validator for an input field which only accepts decimals. Source code adapted from StackOverflow