Index: sources/view/hd/data/VTreatmentRanges.cpp =================================================================== diff -u -r95f6f36face64c2afdabe1904df649738f554709 -r9ea6aa3bf4e8c4b5ef8970a6c19ad12b5765c58d --- sources/view/hd/data/VTreatmentRanges.cpp (.../VTreatmentRanges.cpp) (revision 95f6f36face64c2afdabe1904df649738f554709) +++ sources/view/hd/data/VTreatmentRanges.cpp (.../VTreatmentRanges.cpp) (revision 9ea6aa3bf4e8c4b5ef8970a6c19ad12b5765c58d) @@ -83,6 +83,27 @@ emit acidConcentrateOptionsChanged(_acidConcentrateOptions); } +/** + * \brief VTreatmentRanges::doCheckAcidConcentrate + * \details Check Acid Concentrate selection when popup is disabled and updatte notifcation + */ +void View::VTreatmentRanges::doCheckAcidConcentrate (const int &vSet, const int &vIndex) +{ + enum AcidConcentrates { + ePotassium , + eCalcium , + eMagnesium , + }; + + if ( ! vSet ) { didCheckAcidConcentrate(false); return; } + + QString mAcidConcentrate =_acidConcentrateOptions[vIndex]; + QStringList values = mAcidConcentrate.split(QRegExp("[^0-9.]"), Qt::SkipEmptyParts); + potassium (values.value(AcidConcentrates::ePotassium) .toFloat()); + calcium (values.value(AcidConcentrates::eCalcium) .toFloat()); + didCheckAcidConcentrate(true); +} + /*! * \brief VTreatmentCreate::onSettingsDone * \details fills the items below, read from the settings file, when the reading is notified done by ApplicationController.