| 59 | } |
| 60 | |
| 61 | QString FITSHeaderEditAddUnitDialog::unit() const { |
| 62 | QString unit = ui.leUnit->text(); |
| 63 | if (unit.contains(QLatin1Char('('))) |
| 64 | unit = unit.left(unit.indexOf(QLatin1Char('(')) - 1); |
| 65 | |
| 66 | return unit; |
| 67 | } |
| 68 | |
| 69 | void FITSHeaderEditAddUnitDialog::unitChanged() { |
| 70 | m_okButton->setEnabled(!ui.leUnit->text().isEmpty()); |
no test coverage detected