diff -r f1ed3a2a94e9 -r 69a033e099a2 src/EditProductTab2.cpp --- a/src/EditProductTab2.cpp Thu Apr 28 22:49:13 2022 +0200 +++ b/src/EditProductTab2.cpp Fri Apr 29 17:07:35 2022 +0200 @@ -18,3 +18,34 @@ */ +void EditProduct::showEquipment() +{ + ui->eq_nameEdit->setText(product->eq_name); + ui->eq_notesEdit->setPlainText(product->eq_notes); + + /* Mashing */ + ui->tun_volumeEdit->setValue(product->eq_tun_volume); + ui->tun_materialEdit->setText(tun_materials[product->eq_tun_material]); + ui->mash_volumeEdit->setValue(product->eq_mash_volume); + ui->mash_maxEdit->setValue(product->eq_mash_max); + + /* Lautering */ + ui->lauter_volumeEdit->setValue(product->eq_lauter_volume); + ui->lauter_deadspaceEdit->setValue(product->eq_lauter_deadspace); + + /* Boiling */ + ui->kettle_volumeEdit->setValue(product->eq_kettle_volume); + ui->eqboil_sizeEdit->setValue(product->eq_boil_size); + ui->evap_rateEdit->setValue(product->eq_evap_rate); + ui->eqboil_timeEdit->setValue(product->eq_boil_time); + ui->topup_kettleEdit->setValue(product->eq_top_up_kettle); + ui->hop_utilizationEdit->setValue(product->eq_hop_utilization); + ui->eqbatch_sizeEdit->setValue(product->eq_batch_size); + ui->efficiencyEdit->setValue(product->eq_efficiency); + + /* Chilling */ + ui->trub_chillerlossEdit->setValue(product->eq_trub_chiller_loss); + ui->topup_waterEdit->setValue(product->eq_top_up_water); +} + +