src/EditRecipeTab6.cpp

changeset 287
83e66c6b6e07
parent 171
6cd2d808d863
child 301
fe6346211b5b
--- a/src/EditRecipeTab6.cpp	Tue Jun 14 09:39:31 2022 +0200
+++ b/src/EditRecipeTab6.cpp	Tue Jun 14 10:42:39 2022 +0200
@@ -245,7 +245,7 @@
 
 void EditRecipe::addMashRow_clicked()
 {
-    Mashs newm;
+    MashSteps newm;
 
     for (int i = 0; i < recipe->mashs.size(); i++) {
         if (recipe->mashs.at(i).step_time == 0)
@@ -302,7 +302,7 @@
     int row = pb->objectName().toInt();
     qDebug() << "Move up mash row" << row << recipe->mashs.size();
 
-    Mashs temp;
+    MashSteps temp;
     temp = recipe->mashs[row - 1];
     recipe->mashs[row - 1] = recipe->mashs[row];
     recipe->mashs[row] = temp;
@@ -320,7 +320,7 @@
     int row = pb->objectName().toInt();
     qDebug() << "Move down mash row" << row << recipe->mashs.size();
 
-    Mashs temp;
+    MashSteps temp;
     temp = recipe->mashs[row + 1];
     recipe->mashs[row + 1] = recipe->mashs[row];
     recipe->mashs[row] = temp;
@@ -436,7 +436,7 @@
     QPushButton *pb = qobject_cast<QPushButton *>(QObject::sender());
     recipe->mashs_row = pb->objectName().toInt();
     qDebug() << "Edit mash row" << recipe->mashs_row;
-    Mashs backup = recipe->mashs.at(recipe->mashs_row);
+    MashSteps backup = recipe->mashs.at(recipe->mashs_row);
 
     QDialog* dialog = new QDialog(this);
     dialog->resize(738, 230);
@@ -642,7 +642,7 @@
 	    if (newsteps.isArray()) {
 		for (i = 0; i < newsteps.array().size(); i++) {
 		    QJsonObject obj = newsteps.array().at(i).toObject();
-		    Mashs m;
+		    MashSteps m;
 		    m.step_name = obj["step_name"].toString();
 		    if (obj["step_type"].isString())
 			m.step_type = QString(obj["step_type"].toString()).toInt();

mercurial