src/PrinterDialog.cpp

changeset 419
d49f38cc76a0
parent 413
8ea791d4cab6
child 440
349c0c5bd512
equal deleted inserted replaced
418:236b62fd484e 419:d49f38cc76a0
1796 lines = 0; 1796 lines = 0;
1797 if (product->boil_time == 0) { 1797 if (product->boil_time == 0) {
1798 lines = 3; 1798 lines = 3;
1799 } else { 1799 } else {
1800 lines = 5; 1800 lines = 5;
1801 if (product->brew_cooling_method == CHILLER_TYPE_EMERSION) 1801 if (product->brew_cooling_method == CHILLER_TYPE_IMMERSION)
1802 lines++; 1802 lines++;
1803 for (int i = 0; i < product->fermentables.size(); i++) { 1803 for (int i = 0; i < product->fermentables.size(); i++) {
1804 if (product->fermentables.at(i).added == FERMENTABLE_ADDED_BOIL) 1804 if (product->fermentables.at(i).added == FERMENTABLE_ADDED_BOIL)
1805 lines++; 1805 lines++;
1806 } 1806 }
1830 if (product->fermentables.at(j).added == FERMENTABLE_ADDED_BOIL) 1830 if (product->fermentables.at(j).added == FERMENTABLE_ADDED_BOIL)
1831 checkLine(&painter, &y, QString(tr("%1 kg `%2` at 10 minutes before end of boil")) 1831 checkLine(&painter, &y, QString(tr("%1 kg `%2` at 10 minutes before end of boil"))
1832 .arg(product->fermentables.at(j).amount * factor, 1, 'f', 3) 1832 .arg(product->fermentables.at(j).amount * factor, 1, 'f', 3)
1833 .arg(product->fermentables.at(j).name)); 1833 .arg(product->fermentables.at(j).name));
1834 } 1834 }
1835 if (product->brew_cooling_method == CHILLER_TYPE_EMERSION) 1835 if (product->brew_cooling_method == CHILLER_TYPE_IMMERSION)
1836 checkLine(&painter, &y, QString(tr("Place emersion chiller at 10 minutes before end of boil"))); 1836 checkLine(&painter, &y, QString(tr("Place immersion chiller at 10 minutes before end of boil")));
1837 } 1837 }
1838 for (int j = 0; j < product->hops.size(); j++) { 1838 for (int j = 0; j < product->hops.size(); j++) {
1839 if ((product->hops.at(j).useat == HOP_USEAT_BOIL || product->hops.at(j).useat == HOP_USEAT_AROMA) && product->hops.at(j).time == i) { 1839 if ((product->hops.at(j).useat == HOP_USEAT_BOIL || product->hops.at(j).useat == HOP_USEAT_AROMA) && product->hops.at(j).time == i) {
1840 if (i == 0) 1840 if (i == 0)
1841 checkLine(&painter, &y, QString(tr("%1 gr `%2` at flameout")).arg(product->hops.at(j).amount * 1000 * factor, 1, 'f', 2) 1841 checkLine(&painter, &y, QString(tr("%1 gr `%2` at flameout")).arg(product->hops.at(j).amount * 1000 * factor, 1, 'f', 2)

mercurial