src/EditProductExport.cpp

changeset 440
349c0c5bd512
parent 402
3af1d728b02f
child 521
5fbe71d69fe5
equal deleted inserted replaced
439:31419b7cee69 440:349c0c5bd512
476 memo.append("[head]Hop[/head][head]Vorm[/head][head]Alpha[/head][head]IBU[/head][head]Gram[/head][head]Toevoegen moment[/head]\n"); 476 memo.append("[head]Hop[/head][head]Vorm[/head][head]Alpha[/head][head]IBU[/head][head]Gram[/head][head]Toevoegen moment[/head]\n");
477 for (int i = 0; i < product->hops.size(); i++) { 477 for (int i = 0; i < product->hops.size(); i++) {
478 double ibu = Utils::toIBU(product->hops.at(i).useat, product->hops.at(i).form, product->preboil_sg, product->est_og3, product->batch_size, 478 double ibu = Utils::toIBU(product->hops.at(i).useat, product->hops.at(i).form, product->preboil_sg, product->est_og3, product->batch_size,
479 product->hops.at(i).amount, product->hops.at(i).time, product->hops.at(i).alpha, product->ibu_method, 479 product->hops.at(i).amount, product->hops.at(i).time, product->hops.at(i).alpha, product->ibu_method,
480 product->brew_whirlpool9, product->brew_whirlpool7, product->brew_whirlpool6, product->boil_time, 480 product->brew_whirlpool9, product->brew_whirlpool7, product->brew_whirlpool6, product->boil_time,
481 product->brew_cooling_method, 0, 0, product->hops.at(i).utilisation, product->hops.at(i).bu_factor); 481 product->brew_cooling_method, product->eq_chiller_to79, product->eq_chiller_lpm,
482 product->hops.at(i).utilisation, product->hops.at(i).bu_factor);
482 memo.append("[row][data]" + product->hops.at(i).name + " (" + product->hops.at(i).origin + ")[/data]"); 483 memo.append("[row][data]" + product->hops.at(i).name + " (" + product->hops.at(i).origin + ")[/data]");
483 memo.append("[data]" + QCoreApplication::translate("HopForm", g_hop_forms[product->hops.at(i).form]) + "[/data]"); 484 memo.append("[data]" + QCoreApplication::translate("HopForm", g_hop_forms[product->hops.at(i).form]) + "[/data]");
484 memo.append("[data]" + QString::number(product->hops.at(i).alpha, 'f', 1) + "[/data]"); 485 memo.append("[data]" + QString::number(product->hops.at(i).alpha, 'f', 1) + "[/data]");
485 memo.append("[data]" + QString::number(ibu, 'f', 1) + "[/data]"); 486 memo.append("[data]" + QString::number(ibu, 'f', 1) + "[/data]");
486 memo.append("[data]" + QString::number(product->hops.at(i).amount * 1000, 'f', 2) + "[/data]"); 487 memo.append("[data]" + QString::number(product->hops.at(i).amount * 1000, 'f', 2) + "[/data]");

mercurial