src/EditProduct.cpp

changeset 464
1fed3ff9a64e
parent 461
add4dbef0c81
child 465
8fc909360552
equal deleted inserted replaced
463:98df69885455 464:1fed3ff9a64e
490 ui->brew_preboilvolEdit->setValue(product->brew_preboil_volume); 490 ui->brew_preboilvolEdit->setValue(product->brew_preboil_volume);
491 ui->brew_preboilvolShow->setValue(product->boil_size * 1.04); 491 ui->brew_preboilvolShow->setValue(product->boil_size * 1.04);
492 ui->brew_preboileffShow->setValue(product->brew_preboil_efficiency); 492 ui->brew_preboileffShow->setValue(product->brew_preboil_efficiency);
493 ui->brew_aboilphEdit->setValue(product->brew_aboil_ph); 493 ui->brew_aboilphEdit->setValue(product->brew_aboil_ph);
494 ui->brew_aboilsgEdit->setValue(product->brew_aboil_sg); 494 ui->brew_aboilsgEdit->setValue(product->brew_aboil_sg);
495 ui->brew_aboilvolEdit->setValue(product->brew_aboil_volume + product->eq_chiller_volume); 495 if (product->brew_aboil_volume > 0)
496 ui->brew_aboilvolEdit->setValue(product->brew_aboil_volume + product->eq_chiller_volume);
497 else
498 ui->brew_aboilvolEdit->setValue(0);
496 ui->brew_aboilvolShow->setValue(product->batch_size * 1.04 + product->eq_chiller_volume); 499 ui->brew_aboilvolShow->setValue(product->batch_size * 1.04 + product->eq_chiller_volume);
497 ui->brew_aboileffShow->setValue(product->brew_aboil_efficiency); 500 ui->brew_aboileffShow->setValue(product->brew_aboil_efficiency);
498 ui->brew_whirlpool9Edit->setValue(product->brew_whirlpool9); 501 ui->brew_whirlpool9Edit->setValue(product->brew_whirlpool9);
499 ui->brew_whirlpool7Edit->setValue(product->brew_whirlpool7); 502 ui->brew_whirlpool7Edit->setValue(product->brew_whirlpool7);
500 ui->brew_whirlpool6Edit->setValue(product->brew_whirlpool6); 503 ui->brew_whirlpool6Edit->setValue(product->brew_whirlpool6);
861 #include "EditProductTab8.cpp" 864 #include "EditProductTab8.cpp"
862 #include "EditProductTab9.cpp" 865 #include "EditProductTab9.cpp"
863 #include "EditProductTab10.cpp" 866 #include "EditProductTab10.cpp"
864 #include "EditProductTab11.cpp" 867 #include "EditProductTab11.cpp"
865 #include "EditProductTab12.cpp" 868 #include "EditProductTab12.cpp"
869 #include "EditProductTab13.cpp"
866 #include "EditProductExport.cpp" 870 #include "EditProductExport.cpp"
867 871
868 872
869 void EditProduct::on_deleteButton_clicked() 873 void EditProduct::on_deleteButton_clicked()
870 { 874 {

mercurial