src/EditProductTab2.cpp

changeset 454
2dfead81c72f
parent 429
4aac0b672667
child 458
ac216a75ca9b
equal deleted inserted replaced
453:fc0c10d79539 454:2dfead81c72f
42 ui->topup_kettleEdit->setValue(product->eq_top_up_kettle); 42 ui->topup_kettleEdit->setValue(product->eq_top_up_kettle);
43 ui->eqbatch_sizeEdit->setValue(product->eq_batch_size); 43 ui->eqbatch_sizeEdit->setValue(product->eq_batch_size);
44 44
45 /* Chilling */ 45 /* Chilling */
46 ui->chiller_typeEdit->setText(QCoreApplication::translate("ChillerType", g_chiller_types[product->eq_chiller_type])); 46 ui->chiller_typeEdit->setText(QCoreApplication::translate("ChillerType", g_chiller_types[product->eq_chiller_type]));
47 ui->brew_coolwithShow->setText(QCoreApplication::translate("ChillerType", g_chiller_types[product->eq_chiller_type]));
47 ui->chiller_to79Edit->setValue(product->eq_chiller_to79); 48 ui->chiller_to79Edit->setValue(product->eq_chiller_to79);
48 ui->chiller_volumeEdit->setValue(product->eq_chiller_volume); 49 ui->chiller_volumeEdit->setValue(product->eq_chiller_volume);
49 ui->chiller_lpmEdit->setValue(product->eq_chiller_lpm); 50 ui->chiller_lpmEdit->setValue(product->eq_chiller_lpm);
50 ui->chiller_lossEdit->setValue(product->eq_chiller_loss); 51 ui->chiller_lossEdit->setValue(product->eq_chiller_loss);
51 52
110 product->eq_kettle_volume = query.value("kettle_volume").toDouble(); 111 product->eq_kettle_volume = query.value("kettle_volume").toDouble();
111 product->eq_kettle_height = query.value("kettle_height").toDouble(); 112 product->eq_kettle_height = query.value("kettle_height").toDouble();
112 product->eq_mash_volume = query.value("mash_volume").toDouble(); 113 product->eq_mash_volume = query.value("mash_volume").toDouble();
113 product->eq_mash_max = query.value("mash_max").toDouble(); 114 product->eq_mash_max = query.value("mash_max").toDouble();
114 product->eq_efficiency = query.value("efficiency").toDouble(); 115 product->eq_efficiency = query.value("efficiency").toDouble();
115 product->eq_chiller_type = query.value("chiller_type").toInt(); 116 product->eq_chiller_type = product->brew_cooling_method = query.value("chiller_type").toInt();
116 product->eq_chiller_to79 = query.value("chiller_to79").toDouble(); 117 product->eq_chiller_to79 = query.value("chiller_to79").toDouble();
117 product->eq_chiller_volume = query.value("chiller_volume").toDouble(); 118 product->eq_chiller_volume = query.value("chiller_volume").toDouble();
118 product->eq_chiller_lpm = query.value("chiller_lpm").toDouble(); 119 product->eq_chiller_lpm = query.value("chiller_lpm").toDouble();
119 product->eq_chiller_loss = query.value("chiller_loss").toDouble(); 120 product->eq_chiller_loss = query.value("chiller_loss").toDouble();
120 showEquipment(); 121 showEquipment();
136 product->efficiency = product->eq_efficiency; 137 product->efficiency = product->eq_efficiency;
137 ui->batch_sizeEdit->setValue(product->batch_size); 138 ui->batch_sizeEdit->setValue(product->batch_size);
138 ui->boil_sizeEdit->setValue(product->boil_size); 139 ui->boil_sizeEdit->setValue(product->boil_size);
139 ui->boil_timeEdit->setValue(product->boil_time); 140 ui->boil_timeEdit->setValue(product->boil_time);
140 ui->efficiencyEdit->setValue(product->efficiency); 141 ui->efficiencyEdit->setValue(product->efficiency);
142 ui->brew_preboilvolShow->setValue(product->boil_size * 1.04);
143 ui->brew_aboilvolShow->setValue(product->batch_size * 1.04);
141 144
142 calcFermentablesFromOG(estog); 145 calcFermentablesFromOG(estog);
143 adjustWaters(factor); 146 adjustWaters(factor);
144 calcFermentables(); 147 calcFermentables();
145 adjustHops(factor); 148 adjustHops(factor);

mercurial