506 if (parseError.error != QJsonParseError::NoError) { |
506 if (parseError.error != QJsonParseError::NoError) { |
507 qWarning() << "Parse error: " << parseError.errorString() << "at" << parseError.offset ; |
507 qWarning() << "Parse error: " << parseError.errorString() << "at" << parseError.offset ; |
508 } else if (mashs.isArray()) { |
508 } else if (mashs.isArray()) { |
509 for (int i = 0; i < mashs.array().size(); i++) { |
509 for (int i = 0; i < mashs.array().size(); i++) { |
510 QJsonObject obj = mashs.array().at(i).toObject(); |
510 QJsonObject obj = mashs.array().at(i).toObject(); |
511 Mashs m; |
511 MashSteps m; |
512 m.step_name = obj["step_name"].toString(); |
512 m.step_name = obj["step_name"].toString(); |
513 m.step_type = obj["step_type"].toInt(); |
513 m.step_type = obj["step_type"].toInt(); |
514 m.step_volume = obj["step_volume"].toDouble(); |
514 m.step_volume = obj["step_volume"].toDouble(); |
515 m.step_infuse_amount = obj["step_infuse_amount"].toDouble(); |
515 m.step_infuse_amount = obj["step_infuse_amount"].toDouble(); |
516 m.step_infuse_temp = obj["step_infuse_temp"].toDouble(); |
516 m.step_infuse_temp = obj["step_infuse_temp"].toDouble(); |