239 } |
239 } |
240 |
240 |
241 ui->mash_volEdit->setValue(product->mashs_kg * MaltVolume + infused); |
241 ui->mash_volEdit->setValue(product->mashs_kg * MaltVolume + infused); |
242 /* Show the calculated total mash time. */ |
242 /* Show the calculated total mash time. */ |
243 ui->mash_timeEdit->setText(QString("%1:%2").arg(product->mashs_time / 60).arg(product->mashs_time % 60, 2, 'f', 0, '0')); |
243 ui->mash_timeEdit->setText(QString("%1:%2").arg(product->mashs_time / 60).arg(product->mashs_time % 60, 2, 'f', 0, '0')); |
|
244 |
|
245 /* Estimated needed sparge water corrected for the temperature. */ |
|
246 product->brew_sparge_est = |
|
247 round((product->boil_size - infused + (product->mashs_kg * my_grain_absorbtion) + product->eq_lauter_deadspace) * 1.03 * 1000) / 1000; |
|
248 ui->brew_spargeestShow->setValue(product->brew_sparge_est); |
244 } |
249 } |
245 |
250 |
246 |
251 |
247 void EditProduct::addMashRow_clicked() |
252 void EditProduct::addMashRow_clicked() |
248 { |
253 { |