src/Setup.cpp

changeset 411
c78f8cf11849
parent 380
8f5c03ed4321
child 430
ef2638cfc1b7
--- a/src/Setup.cpp	Sat Oct 08 16:02:25 2022 +0200
+++ b/src/Setup.cpp	Sun Oct 09 13:17:23 2022 +0200
@@ -184,7 +184,7 @@
     grainLabel->setObjectName(QString::fromUtf8("grainLabel"));
     grainLabel->setGeometry(QRect(400, 120, 161, 20));
     grainLabel->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
-    grainLabel->setText(tr("Grain Absorbtion:"));
+    grainLabel->setText(tr("Grain Absorption:"));
 
     brixLabel = new QLabel(topWidget);
     brixLabel->setObjectName(QString::fromUtf8("brixLabel"));
@@ -244,7 +244,7 @@
     grainEdit->setSingleStep(0.010000000000000);
     grainEdit->setStepType(QAbstractSpinBox::DefaultStepType);
     grainEdit->setValue(1.000000000000000);
-    grainEdit->setToolTip(tr("Absorbtion with water by the grain (L/Kg)"));
+    grainEdit->setToolTip(tr("Absorption with water by the grain (L/Kg)"));
     grainEdit->setSuffix(tr(" L/Kg"));
 
     brixEdit = new QDoubleSpinBox(topWidget);
@@ -367,7 +367,7 @@
     connect(cryohopEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
     connect(extractEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
 
-    grainEdit->setValue(query.value("grain_absorbtion").toDouble());
+    grainEdit->setValue(query.value("grain_absorption").toDouble());
     brixEdit->setValue(query.value("brix_correction").toDouble());
     heightEdit->setValue(query.value("brewery_height").toInt());
     connect(grainEdit, &QDoubleSpinBox::textChanged, this, &Setup::is_changed);
@@ -511,7 +511,7 @@
     query.prepare("UPDATE profile_setup SET brewery_name=:brewery, brewery_logo=:logo, factor_mashhop=:mashhop, factor_fwh=:fwh, "
 		  "ut_pellet=:pellet, ut_plug=:plug, ut_leaf=:leaf, ut_wethop=:wet, ut_t45=:cryo, ut_co2extract=:extract, "
 		  "color_method=:color, ibu_method=:ibu, "
-		  "brix_correction=:brix, grain_absorbtion=:grain, default_water=:water, my_yeastlab=:yeast, "
+		  "brix_correction=:brix, grain_absorption=:grain, default_water=:water, my_yeastlab=:yeast, "
 		  "brewery_height=:height  WHERE record='1'");
     query.bindValue(":brewery", this->breweryEdit->text());
     query.bindValue(":logo", logoByteArray);

mercurial