# HG changeset patch # User Michiel Broek # Date 1717247948 -7200 # Node ID e6a4a3a2958425a215979c24e37903f4de771666 # Parent 6fb367b13ffba782c32cd8e05f466d06d25dccf3 Allow enter first pH measurements from every mash step and not just the first one. All pH editors in the production module have 0.05 or 0.01 resolution in the edit steps. diff -r 6fb367b13ffb -r e6a4a3a29584 src/EditProductTab7.cpp --- a/src/EditProductTab7.cpp Thu Apr 25 13:16:48 2024 +0200 +++ b/src/EditProductTab7.cpp Sat Jun 01 15:19:08 2024 +0200 @@ -453,7 +453,7 @@ qDebug() << "stepph_changed" << product->mashs_row << val; if (product->mashs.at(product->mashs_row).step_ph == 0) { - if (product->mashs_row == 0) { + if ((product->mashs_row == 0) || ((product->mashs_row > 0) && (product->mashs.at(product->mashs_row - 1).step_ph == 0))) { /* * Jump start at 5.0pH */ @@ -642,7 +642,7 @@ stepphEdit->setDecimals(2); stepphEdit->setMaximum(14.0); stepphEdit->setAccelerated(true); - stepphEdit->setSingleStep(0.1); + stepphEdit->setSingleStep(0.01); stepphEdit->setValue(product->mashs.at(product->mashs_row).step_ph); /* diff -r 6fb367b13ffb -r e6a4a3a29584 ui/EditProduct.ui --- a/ui/EditProduct.ui Thu Apr 25 13:16:48 2024 +0200 +++ b/ui/EditProduct.ui Sat Jun 01 15:19:08 2024 +0200 @@ -95,7 +95,7 @@ QTabWidget::Rounded - 0 + 10 Qt::ElideNone @@ -4990,7 +4990,7 @@ 14.000000000000000 - 0.100000000000000 + 0.050000000000000 @@ -5103,7 +5103,7 @@ 14.000000000000000 - 0.100000000000000 + 0.050000000000000 @@ -7574,7 +7574,7 @@ 14.000000000000000 - 0.100000000000000 + 0.010000000000000 @@ -7811,7 +7811,7 @@ 14.000000000000000 - 0.100000000000000 + 0.010000000000000 @@ -7991,7 +7991,7 @@ 14.000000000000000 - 0.100000000000000 + 0.010000000000000 @@ -9008,7 +9008,7 @@ 14.000000000000000 - 0.100000000000000 + 0.010000000000000 @@ -10703,7 +10703,7 @@ 14.000000000000000 - 0.100000000000000 + 0.010000000000000