src/database/db_product.cpp

changeset 287
83e66c6b6e07
parent 284
33bb98c33e6a
child 294
afc763d9fd89
equal deleted inserted replaced
286:18a7e8d67fc5 287:83e66c6b6e07
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();

mercurial