200 hop_aroma = round(hop_aroma * 1000.0 / 6.0) / 10; |
200 hop_aroma = round(hop_aroma * 1000.0 / 6.0) / 10; |
201 if (hop_flavour > 100) |
201 if (hop_flavour > 100) |
202 hop_flavour = 100; |
202 hop_flavour = 100; |
203 if (hop_aroma > 100) |
203 if (hop_aroma > 100) |
204 hop_aroma = 100; |
204 hop_aroma = 100; |
205 qDebug() << "ibu" << recipe->est_ibu << ibus << "flavour" << hop_flavour << "aroma" << hop_aroma; |
205 qDebug() << "ibu" << recipe->est_ibu << ibus << "flavour" << hop_flavour << "aroma" << hop_aroma << "method" << recipe->ibu_method; |
206 |
206 |
207 recipe->est_ibu = ibus; |
207 recipe->est_ibu = ibus; |
208 ui->est_ibuEdit->setValue(recipe->est_ibu); |
208 ui->est_ibuEdit->setValue(recipe->est_ibu); |
209 ui->est_ibu2Edit->setValue(recipe->est_ibu); |
209 ui->est_ibu2Edit->setValue(recipe->est_ibu); |
210 ui->hop_tasteShow->setValue(hop_flavour); |
210 ui->hop_tasteShow->setValue(hop_flavour); |