328 if (parseError.error != QJsonParseError::NoError) { |
328 if (parseError.error != QJsonParseError::NoError) { |
329 qWarning() << "Parse error: " << parseError.errorString() << "at" << parseError.offset ; |
329 qWarning() << "Parse error: " << parseError.errorString() << "at" << parseError.offset ; |
330 } else if (mashs.isArray()) { |
330 } else if (mashs.isArray()) { |
331 for (int i = 0; i < mashs.array().size(); i++) { |
331 for (int i = 0; i < mashs.array().size(); i++) { |
332 QJsonObject obj = mashs.array().at(i).toObject(); |
332 QJsonObject obj = mashs.array().at(i).toObject(); |
333 Mashs m; |
333 MashSteps m; |
334 m.step_name = obj["step_name"].toString(); |
334 m.step_name = obj["step_name"].toString(); |
335 m.step_type = obj["step_type"].toInt(); |
335 m.step_type = obj["step_type"].toInt(); |
336 m.step_volume = obj["step_volume"].toDouble(); |
336 m.step_volume = obj["step_volume"].toDouble(); |
337 m.step_infuse_amount = obj["step_infuse_amount"].toDouble(); |
337 m.step_infuse_amount = obj["step_infuse_amount"].toDouble(); |
338 m.step_infuse_temp = obj["step_infuse_temp"].toDouble(); |
338 m.step_infuse_temp = obj["step_infuse_temp"].toDouble(); |