254 } |
254 } |
255 if (product->fermentables.at(i).f_added < 4) { |
255 if (product->fermentables.at(i).f_added < 4) { |
256 colort += product->fermentables.at(i).f_amount * Utils::ebc_to_srm(product->fermentables.at(i).f_color); |
256 colort += product->fermentables.at(i).f_amount * Utils::ebc_to_srm(product->fermentables.at(i).f_color); |
257 colorh += product->fermentables.at(i).f_amount * product->fermentables.at(i).f_color * Utils::get_kt(product->fermentables.at(i).f_color); |
257 colorh += product->fermentables.at(i).f_amount * product->fermentables.at(i).f_color * Utils::get_kt(product->fermentables.at(i).f_color); |
258 colorn += (product->fermentables.at(i).f_percentage / 100) * product->fermentables.at(i).f_color; // For 8.6 Pt wort. |
258 colorn += (product->fermentables.at(i).f_percentage / 100) * product->fermentables.at(i).f_color; // For 8.6 Pt wort. |
|
259 } |
|
260 if (product->fermentables.at(i).f_added == 4) { // Bottle priming |
|
261 ui->bottle_sug_weightShow->setValue(product->fermentables.at(i).f_amount * 1000); |
|
262 // product->fermentables.at(i).f_name select in dropdown |
|
263 } |
|
264 if (product->fermentables.at(i).f_added == 5) { // Keg priming |
|
265 |
259 } |
266 } |
260 } |
267 } |
261 qDebug() << " colort" << colort << "colorh" << colorh << "colorn" << colorn; |
268 qDebug() << " colort" << colort << "colorh" << colorh << "colorn" << colorn; |
262 qDebug() << " psugar" << psugar << "pcara" << pcara << "mvol" << mvol; |
269 qDebug() << " psugar" << psugar << "pcara" << pcara << "mvol" << mvol; |
263 qDebug() << " sugarsf" << sugarsf << "sugarsm" << sugarsm; |
270 qDebug() << " sugarsf" << sugarsf << "sugarsm" << sugarsm; |