| 68 | } |
| 69 | |
| 70 | AddSubtractValueDialog::~AddSubtractValueDialog() { |
| 71 | delete m_project; |
| 72 | |
| 73 | KConfigGroup conf = Settings::group(QStringLiteral("AddSubtractValueDialog")); |
| 74 | conf.writeEntry(QStringLiteral("Type"), ui.cbType->currentData().toInt()); |
| 75 | conf.writeEntry(QStringLiteral("Preview"), ui.chbPreview->isChecked()); |
| 76 | |
| 77 | // baseline subtraction specific parameters |
| 78 | const auto numberLocale = QLocale(); |
| 79 | conf.writeEntry(QStringLiteral("BaselineParameter1"), ui.sbBaselineParameter1->value()); |
| 80 | conf.writeEntry(QStringLiteral("BaselineParameter2"), numberLocale.toDouble(ui.leBaselineParameter2->text())); |
| 81 | conf.writeEntry(QStringLiteral("BaselineParameter3"), ui.sbBaselineParameter3->value()); |
| 82 | |
| 83 | KWindowConfig::saveWindowSize(windowHandle(), conf); |
| 84 | } |
| 85 | |
| 86 | void AddSubtractValueDialog::init() { |
| 87 | // initilize the line edits with the values based on the values in the data container |