| 48 | } |
| 49 | |
| 50 | void QmitkLevelWindowRangeChangeDialog::inputValidator() |
| 51 | { |
| 52 | if (!(m_Controls->rangeMinDoubleSpinBox->value() < m_Controls->rangeMaxDoubleSpinBox->value())) |
| 53 | { |
| 54 | QMessageBox::critical(this, |
| 55 | "Change Range", |
| 56 | "Upper limit has to be greater than lower limit.\n" |
| 57 | "Please enter limits again."); |
| 58 | } |
| 59 | else |
| 60 | this->accept(); |
| 61 | } |