src/EditProductTab7.cpp

changeset 411
c78f8cf11849
parent 307
afd711e37f68
child 437
e6b5510ca1d9
equal deleted inserted replaced
410:6ef4530517af 411:c78f8cf11849
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()

mercurial