src/EditProduct.cpp

changeset 194
ea8cce5e7eb9
parent 191
7446ee2fb427
child 195
9887278c4fbe
equal deleted inserted replaced
193:f5a1973236ef 194:ea8cce5e7eb9
1098 ui->ok_pmptLabel->setVisible(false); 1098 ui->ok_pmptLabel->setVisible(false);
1099 ui->ok_pmptIcon->setVisible(false); 1099 ui->ok_pmptIcon->setVisible(false);
1100 return; 1100 return;
1101 } 1101 }
1102 1102
1103 qDebug() << "calcSupplies() f:" << product->fermentables_ok << "h:" << product->hops_ok /*<< "m:" << product->miscs_ok << "y:" << product->yeasts_ok << "w:" << product->waters_ok*/; 1103 qDebug() << "calcSupplies() f:" << product->fermentables_ok << "h:" << product->hops_ok << "m:" << product->miscs_ok /*<< "y:" << product->yeasts_ok << "w:" << product->waters_ok*/;
1104 if (product->fermentables_ok && product->hops_ok /*&& product->miscs_ok && product->yeasts_ok && product->waters_ok */) { 1104 if (product->fermentables_ok && product->hops_ok && product->miscs_ok /*&& product->yeasts_ok && product->waters_ok */) {
1105 ui->ok_pmptIcon->setPixmap(QPixmap(QString::fromUtf8(":/icons/silk/tick.png"))); 1105 ui->ok_pmptIcon->setPixmap(QPixmap(QString::fromUtf8(":/icons/silk/tick.png")));
1106 } else { 1106 } else {
1107 ui->ok_pmptIcon->setPixmap(QPixmap(QString::fromUtf8(":/icons/silk/cancel.png"))); 1107 ui->ok_pmptIcon->setPixmap(QPixmap(QString::fromUtf8(":/icons/silk/cancel.png")));
1108 } 1108 }
1109 } 1109 }
1114 refreshFermentables(); 1114 refreshFermentables();
1115 calcFermentables(); /* Must be before Hops */ 1115 calcFermentables(); /* Must be before Hops */
1116 refreshHops(); 1116 refreshHops();
1117 calcIBUs(); 1117 calcIBUs();
1118 refreshMiscs(); 1118 refreshMiscs();
1119 calcMiscs();
1119 refreshYeasts(); 1120 refreshYeasts();
1120 calcYeast(); 1121 calcYeast();
1121 calcMash(); 1122 calcMash();
1122 refreshMashs(); 1123 refreshMashs();
1123 refreshWaters(); 1124 refreshWaters();

mercurial