src/EditProductExport.cpp

changeset 336
e97f9e87d94b
parent 304
aa8d421bfc24
child 339
2f3cfb983fcc
--- a/src/EditProductExport.cpp	Sun Jul 03 19:02:02 2022 +0200
+++ b/src/EditProductExport.cpp	Tue Jul 05 14:31:39 2022 +0200
@@ -23,7 +23,6 @@
     qDebug() << "export";
 
     const QStringList color_method({ "Morey", "Mosher", "Daniels", "Halberstadt", "Naudts" });
-    const QStringList ibu_method({ "Tinseth", "Rager", "Daniels", "Garetz", "Mosher", "Noonan" });
     const QStringList hop_forms({ "Pellet", "Plug", "Leaf", "Leaf", "Pellet", "Pellet" });
     /*                                                    "Leaf Wet", "Cryo", "Extract" */
     /*  We use more hop forms then beerxml knows about, so we send known names */
@@ -79,7 +78,7 @@
     }
     if (product->est_ibu > 0) {
 	xmlWriter->writeTextElement("EST_IBU", QString::number(product->est_ibu, 'f', 1));
-	xmlWriter->writeTextElement("IBU_METHOD", ibu_method[product->ibu_method]);
+	xmlWriter->writeTextElement("IBU_METHOD", g_ibu_method[product->ibu_method]);
     }
     xmlWriter->writeTextElement("BMS_COOLING_TO", QString::number(product->brew_cooling_to, 'f', 1));
 
@@ -420,7 +419,6 @@
 void EditProduct::toforumProduct()
 {
     const QStringList color_method({ "Morey", "Mosher", "Daniels", "Halberstadt", "Naudts" });
-    const QStringList ibu_method({ "Tinseth", "Rager", "Daniels", "Garetz", "Mosher", "Noonan" });
 
     QString memo = QString("[u][b]BMSapp v");
     memo.append(VERSIONSTRING); // For some stupid reason this must be on it's own.
@@ -437,7 +435,7 @@
     memo.append("[row][data]Geschatte eind densiteit[/data][data]" + QString::number(product->est_fg, 'f', 3) + " SG[/data][/row]\n");
     memo.append("[row][data]Geschat alcohol[/data][data]" + QString::number(product->est_abv, 'f', 1) + "%[/data][/row]\n");
     memo.append("[row][data]Kleur (" + color_method[product->color_method] + ")[/data][data]" + QString::number(product->est_color, 'f', 0) + " EBC[/data][/row]\n");
-    memo.append("[row][data]Bitterheid (" + ibu_method[product->ibu_method] + ")[/data][data]" + QString::number(product->est_ibu, 'f', 1) + " IBU[/data][/row]\n");
+    memo.append("[row][data]Bitterheid (" + QString(g_ibu_method[product->ibu_method]) + ")[/data][data]" + QString::number(product->est_ibu, 'f', 1) + " IBU[/data][/row]\n");
     memo.append("[/tabular]\n\n");
 
     memo.append("[u][b]Vergistbare ingrediƫnten[/b][/u]\n");

mercurial