src/EditProduct.cpp

changeset 191
7446ee2fb427
parent 190
bb6c06910f0f
child 194
ea8cce5e7eb9
equal deleted inserted replaced
190:bb6c06910f0f 191:7446ee2fb427
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/error.png"))); 1107 ui->ok_pmptIcon->setPixmap(QPixmap(QString::fromUtf8(":/icons/silk/cancel.png")));
1108 } 1108 }
1109 } 1109 }
1110 1110
1111 1111
1112 void EditProduct::refreshAll() 1112 void EditProduct::refreshAll()
1120 calcYeast(); 1120 calcYeast();
1121 calcMash(); 1121 calcMash();
1122 refreshMashs(); 1122 refreshMashs();
1123 refreshWaters(); 1123 refreshWaters();
1124 calcWater(); 1124 calcWater();
1125 calcSupplies();
1125 } 1126 }
1126 1127
1127 1128
1128 /* 1129 /*
1129 * Window header, mark any change with '**' 1130 * Window header, mark any change with '**'

mercurial