999 ui->bottle_carbEdit->setValue(product->bottle_carbonation); |
999 ui->bottle_carbEdit->setValue(product->bottle_carbonation); |
1000 ui->bottle_sug_amountShow->setValue(product->bottle_priming_amount); |
1000 ui->bottle_sug_amountShow->setValue(product->bottle_priming_amount); |
1001 ui->bottle_sug_waterEdit->setValue(product->bottle_priming_water); |
1001 ui->bottle_sug_waterEdit->setValue(product->bottle_priming_water); |
1002 ui->bottle_tempEdit->setValue(product->bottle_carbonation_temp); |
1002 ui->bottle_tempEdit->setValue(product->bottle_carbonation_temp); |
1003 |
1003 |
|
1004 ui->keg_volumeEdit->setValue(product->keg_amount); |
|
1005 ui->keg_carbEdit->setValue(product->keg_carbonation); |
|
1006 ui->keg_sug_amountShow->setValue(product->keg_priming_amount); |
|
1007 ui->keg_sug_waterEdit->setValue(product->keg_priming_water); |
|
1008 ui->keg_tempEdit->setValue(product->keg_carbonation_temp); |
|
1009 ui->keg_forcedEdit->setChecked(product->keg_forced_carb); |
|
1010 ui->keg_barShow->setValue(product->keg_pressure); |
|
1011 |
1004 // Tab taste. |
1012 // Tab taste. |
1005 ui->taste_dateEdit->setText(product->taste_date.toString("dd MMM yyyy")); |
1013 ui->taste_dateEdit->setText(product->taste_date.toString("dd MMM yyyy")); |
1006 ui->taste_rateEdit->setValue(product->taste_rate); |
1014 ui->taste_rateEdit->setValue(product->taste_rate); |
1007 ui->taste_notesEdit->setPlainText(product->taste_notes); |
1015 ui->taste_notesEdit->setPlainText(product->taste_notes); |
1008 ui->taste_colorEdit->setText(product->taste_color); |
1016 ui->taste_colorEdit->setText(product->taste_color); |
1153 connect(ui->bottle_volumeEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_volume_changed); |
1161 connect(ui->bottle_volumeEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_volume_changed); |
1154 connect(ui->bottle_carbEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_co2_changed); |
1162 connect(ui->bottle_carbEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_co2_changed); |
1155 connect(ui->bottle_sugarEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditProduct::bottle_sugar_changed); |
1163 connect(ui->bottle_sugarEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditProduct::bottle_sugar_changed); |
1156 connect(ui->bottle_sug_waterEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_water_changed); |
1164 connect(ui->bottle_sug_waterEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_water_changed); |
1157 connect(ui->bottle_tempEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_temp_changed); |
1165 connect(ui->bottle_tempEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::bottle_temp_changed); |
|
1166 connect(ui->keg_volumeEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::kegs_volume_changed); |
|
1167 connect(ui->keg_carbEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::kegs_co2_changed); |
|
1168 connect(ui->keg_sugarEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditProduct::kegs_sugar_changed); |
|
1169 connect(ui->keg_sug_waterEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::kegs_water_changed); |
|
1170 connect(ui->keg_tempEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::kegs_temp_changed); |
|
1171 connect(ui->keg_forcedEdit, &QCheckBox::stateChanged, this, &EditProduct::kegs_forced_changed); |
1158 |
1172 |
1159 /* All signals from tab Tasting */ |
1173 /* All signals from tab Tasting */ |
1160 |
1174 |
1161 setStage(); |
1175 setStage(); |
1162 |
1176 |