src/EditProduct.cpp

changeset 209
19c50b1f58d3
parent 207
3b164a0aea90
child 210
b45bd6da5220
equal deleted inserted replaced
208:615afedbcd25 209:19c50b1f58d3
938 ui->brew_preboilphEdit->setValue(product->brew_preboil_ph); 938 ui->brew_preboilphEdit->setValue(product->brew_preboil_ph);
939 ui->brew_preboilsgEdit->setValue(product->brew_preboil_sg); 939 ui->brew_preboilsgEdit->setValue(product->brew_preboil_sg);
940 ui->brew_preboilvolEdit->setValue(product->brew_preboil_volume); 940 ui->brew_preboilvolEdit->setValue(product->brew_preboil_volume);
941 ui->brew_preboilvolShow->setValue(product->boil_size * 1.04); 941 ui->brew_preboilvolShow->setValue(product->boil_size * 1.04);
942 ui->brew_preboileffShow->setValue(product->brew_preboil_efficiency); 942 ui->brew_preboileffShow->setValue(product->brew_preboil_efficiency);
943 calcEfficiencyBeforeBoil();
943 ui->brew_aboilphEdit->setValue(product->brew_aboil_ph); 944 ui->brew_aboilphEdit->setValue(product->brew_aboil_ph);
944 ui->brew_aboilsgEdit->setValue(product->brew_aboil_sg); 945 ui->brew_aboilsgEdit->setValue(product->brew_aboil_sg);
945 ui->brew_aboilvolEdit->setValue(product->brew_aboil_volume); 946 ui->brew_aboilvolEdit->setValue(product->brew_aboil_volume);
946 ui->brew_aboilvolShow->setValue(product->batch_size * 1.04); 947 ui->brew_aboilvolShow->setValue(product->batch_size * 1.04);
947 ui->brew_aboileffShow->setValue(product->brew_aboil_efficiency); 948 ui->brew_aboileffShow->setValue(product->brew_aboil_efficiency);
949 calcEfficiencyAfterBoil();
948 ui->brew_whirlpool9Edit->setValue(product->brew_whirlpool9); 950 ui->brew_whirlpool9Edit->setValue(product->brew_whirlpool9);
949 ui->brew_whirlpool7Edit->setValue(product->brew_whirlpool7); 951 ui->brew_whirlpool7Edit->setValue(product->brew_whirlpool7);
950 ui->brew_whirlpool6Edit->setValue(product->brew_whirlpool6); 952 ui->brew_whirlpool6Edit->setValue(product->brew_whirlpool6);
951 ui->brew_whirlpool2Edit->setValue(product->brew_whirlpool2); 953 ui->brew_whirlpool2Edit->setValue(product->brew_whirlpool2);
952 ui->brew_cooltoEdit->setValue(product->brew_cooling_to); 954 ui->brew_cooltoEdit->setValue(product->brew_cooling_to);
1085 connect(ui->brew_startDate, &QDateEdit::dateChanged, this, &EditProduct::brew_start_date_changed); 1087 connect(ui->brew_startDate, &QDateEdit::dateChanged, this, &EditProduct::brew_start_date_changed);
1086 connect(ui->brew_mashphEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_mashph_changed); 1088 connect(ui->brew_mashphEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_mashph_changed);
1087 connect(ui->brew_mashsgEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_mashsg_changed); 1089 connect(ui->brew_mashsgEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_mashsg_changed);
1088 connect(ui->brew_spargephEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_spargeph_changed); 1090 connect(ui->brew_spargephEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_spargeph_changed);
1089 connect(ui->brew_preboilphEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_preboilph_changed); 1091 connect(ui->brew_preboilphEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_preboilph_changed);
1092 connect(ui->brew_preboilsgEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_preboilsg_changed);
1093 connect(ui->brew_preboilvolEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_preboilvol_changed);
1090 connect(ui->brew_aboilphEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilph_changed); 1094 connect(ui->brew_aboilphEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilph_changed);
1095 connect(ui->brew_aboilsgEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilsg_changed);
1096 connect(ui->brew_aboilvolEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilvol_changed);
1091 1097
1092 setStage(); 1098 setStage();
1093 1099
1094 ui->saveButton->setEnabled(false); 1100 ui->saveButton->setEnabled(false);
1095 ui->deleteButton->setEnabled((id >= 0 && ! product->locked) ? true:false); 1101 ui->deleteButton->setEnabled((id >= 0 && ! product->locked) ? true:false);

mercurial