src/EditProductTab1.cpp

changeset 397
877420a13815
parent 395
7212b980a527
child 403
2ed66e586a52
--- a/src/EditProductTab1.cpp	Wed Aug 17 15:23:17 2022 +0200
+++ b/src/EditProductTab1.cpp	Thu Aug 18 16:11:20 2022 +0200
@@ -40,12 +40,13 @@
     double re = ((0.1808 * ((Utils::sg_to_plato(product->st_og_min) + Utils::sg_to_plato(product->st_og_max)) / 2)) +
 		 (0.8192 * ((Utils::sg_to_plato(fg_min) + Utils::sg_to_plato(product->st_fg_max)) / 2)));
 
-    /* BU:RE */
+    /*
+     * BU:RE
+     * Divide over average RE gives the best ranges.
+     */
     double bure_min = product->st_ibu_min / re;
     double bure_max = product->st_ibu_max / re;
     ui->est_bufguShow->setRange(bure_min, bure_max);
-
-    qDebug() << "BU:RE" << bure_min << bure_max;
 }
 
 
@@ -116,7 +117,8 @@
     ui->est_fgShow->setRange(query.value(9).toDouble(), query.value(10).toDouble());
     ui->est_ibuShow->setRange(query.value(11).toDouble(), query.value(12).toDouble());
     ui->est_colorShow->setRange(query.value(13).toDouble(), query.value(14).toDouble());
-    ui->est_carbShow->setRange(query.value(15).toDouble(), query.value(16).toDouble());
+    ui->est_bottle_co2Show->setRange(query.value(15).toDouble(), query.value(16).toDouble());
+    ui->est_kegs_co2Show->setRange(query.value(15).toDouble(), query.value(16).toDouble());
     ui->est_abvShow->setRange(query.value(17).toDouble(), query.value(18).toDouble());
 
     calcStyle();
@@ -329,8 +331,6 @@
     ui->sp_acidtypeEdit->setDisabled(stage > PROD_STAGE_BREW);
     ui->w2_volEdit->setReadOnly(stage > PROD_STAGE_BREW);
     ui->w2_volEdit->setButtonSymbols((stage > PROD_STAGE_BREW) ? QAbstractSpinBox::NoButtons : QAbstractSpinBox::UpDownArrows);
-    //ui->sp_tempEdit->setReadOnly(stage > PROD_STAGE_BREW);
-    //ui->sp_tempEdit->setButtonSymbols((stage > PROD_STAGE_BREW) ? QAbstractSpinBox::NoButtons : QAbstractSpinBox::UpDownArrows);
     ui->sp_volEdit->setReadOnly(stage > PROD_STAGE_BREW);
     ui->sp_volEdit->setButtonSymbols((stage > PROD_STAGE_BREW) ? QAbstractSpinBox::NoButtons : QAbstractSpinBox::UpDownArrows);
     ui->bs_cacl2Edit->setReadOnly(stage > PROD_STAGE_BREW);

mercurial