254 /* Show the calculated total mash time. */ |
254 /* Show the calculated total mash time. */ |
255 ui->mash_timeEdit->setText(QString("%1:%2").arg(product->mashs_time / 60).arg(product->mashs_time % 60, 2, 'f', 0, '0')); |
255 ui->mash_timeEdit->setText(QString("%1:%2").arg(product->mashs_time / 60).arg(product->mashs_time % 60, 2, 'f', 0, '0')); |
256 |
256 |
257 /* Estimated needed sparge water corrected for the temperature. */ |
257 /* Estimated needed sparge water corrected for the temperature. */ |
258 product->brew_sparge_est = |
258 product->brew_sparge_est = |
259 round((product->boil_size - infused + (product->mashs_kg * my_grain_absorbtion) + product->eq_lauter_deadspace) * 1.03 * 1000) / 1000; |
259 round((product->boil_size - infused + (product->mashs_kg * my_grain_absorption) + product->eq_lauter_deadspace) * 1.03 * 1000) / 1000; |
260 ui->brew_spargeestShow->setValue(product->brew_sparge_est); |
260 ui->brew_spargeestShow->setValue(product->brew_sparge_est); |
261 } |
261 } |
262 |
262 |
263 |
263 |
264 void EditProduct::addMashRow_clicked() |
264 void EditProduct::addMashRow_clicked() |