# HG changeset patch # User Michiel Broek # Date 1649016705 -7200 # Node ID c02dfb7bb2f965003efc5907bea57670c243d049 # Parent 6da4e93b6cebc5666b96939b7d8948af63ce5a4b Show kcal/l in the first tab diff -r 6da4e93b6ceb -r c02dfb7bb2f9 src/EditRecipe.cpp --- a/src/EditRecipe.cpp Sun Apr 03 22:02:12 2022 +0200 +++ b/src/EditRecipe.cpp Sun Apr 03 22:11:45 2022 +0200 @@ -606,7 +606,7 @@ */ double alc = 1881.22 * fg * (og - fg) / (1.775 - og); double sug = 3550 * fg * (0.1808 * og + 0.8192 * fg - 1.0004); - qDebug() << " kcal" << round((alc + sug) / (12 * 0.0295735296)); + ui->calEdit->setValue(round((alc + sug) / (12 * 0.0295735296))); // If to_100 then make all amount fields t/o and percent fields r/w