src/EditProductTab3.cpp

changeset 187
91af2c697345
parent 184
da148d6b4c95
child 190
bb6c06910f0f
--- a/src/EditProductTab3.cpp	Mon May 02 11:48:12 2022 +0200
+++ b/src/EditProductTab3.cpp	Mon May 02 16:40:41 2022 +0200
@@ -257,6 +257,13 @@
 	    colorh += product->fermentables.at(i).f_amount * product->fermentables.at(i).f_color * Utils::get_kt(product->fermentables.at(i).f_color);
 	    colorn += (product->fermentables.at(i).f_percentage / 100) * product->fermentables.at(i).f_color;	// For 8.6 Pt wort.
 	}
+	if (product->fermentables.at(i).f_added == 4) {	// Bottle priming
+	    ui->bottle_sug_weightShow->setValue(product->fermentables.at(i).f_amount * 1000);
+	    // product->fermentables.at(i).f_name  select in dropdown
+	}
+	if (product->fermentables.at(i).f_added == 5) {	// Keg priming
+
+	}
     }
     qDebug() << "  colort" << colort << "colorh" << colorh << "colorn" << colorn;
     qDebug() << "  psugar" << psugar << "pcara" << pcara << "mvol" << mvol;

mercurial