86 query.prepare("SELECT style_guide,style_letter,name FROM profile_styles ORDER BY style_guide,style_letter,name"); |
86 query.prepare("SELECT style_guide,style_letter,name FROM profile_styles ORDER BY style_guide,style_letter,name"); |
87 query.exec(); |
87 query.exec(); |
88 while (query.next()) { |
88 while (query.next()) { |
89 ui->beerstyleEdit->addItem(query.value(0).toString()+" "+query.value(1).toString()+" "+query.value(2).toString()); |
89 ui->beerstyleEdit->addItem(query.value(0).toString()+" "+query.value(1).toString()+" "+query.value(2).toString()); |
90 } |
90 } |
91 |
|
92 for (int i = 0; i < 5; i++) |
|
93 ui->brew_coolwithEdit->addItem(QCoreApplication::translate("ChillerType", g_chiller_types[i])); |
|
94 |
91 |
95 ui->brew_aerwithEdit->addItem(tr("None")); |
92 ui->brew_aerwithEdit->addItem(tr("None")); |
96 ui->brew_aerwithEdit->addItem(tr("Air")); |
93 ui->brew_aerwithEdit->addItem(tr("Air")); |
97 ui->brew_aerwithEdit->addItem(tr("Oxygen")); |
94 ui->brew_aerwithEdit->addItem(tr("Oxygen")); |
98 |
95 |
501 ui->brew_whirlpool9Edit->setValue(product->brew_whirlpool9); |
498 ui->brew_whirlpool9Edit->setValue(product->brew_whirlpool9); |
502 ui->brew_whirlpool7Edit->setValue(product->brew_whirlpool7); |
499 ui->brew_whirlpool7Edit->setValue(product->brew_whirlpool7); |
503 ui->brew_whirlpool6Edit->setValue(product->brew_whirlpool6); |
500 ui->brew_whirlpool6Edit->setValue(product->brew_whirlpool6); |
504 ui->brew_whirlpool2Edit->setValue(product->brew_whirlpool2); |
501 ui->brew_whirlpool2Edit->setValue(product->brew_whirlpool2); |
505 ui->brew_cooltoEdit->setValue(product->brew_cooling_to); |
502 ui->brew_cooltoEdit->setValue(product->brew_cooling_to); |
506 ui->brew_coolwithEdit->setCurrentIndex(product->brew_cooling_method); |
503 ui->brew_coolwithShow->setText(QCoreApplication::translate("ChillerType", g_chiller_types[product->eq_chiller_type])); |
507 ui->brew_cooltimeEdit->setValue(product->brew_cooling_time); |
504 ui->brew_cooltimeEdit->setValue(product->brew_cooling_time); |
508 |
505 |
509 ui->brew_trublossEdit->setValue(product->brew_fermenter_tcloss); |
506 ui->brew_trublossEdit->setValue(product->brew_fermenter_tcloss); |
510 ui->brew_topupwaterEdit->setValue(product->brew_fermenter_extrawater); |
507 ui->brew_topupwaterEdit->setValue(product->brew_fermenter_extrawater); |
511 ui->brew_tofermentEdit->setValue(product->brew_fermenter_volume); |
508 ui->brew_tofermentEdit->setValue(product->brew_fermenter_volume); |
671 connect(ui->brew_preboilButton, SIGNAL(clicked()), this, SLOT(brew_preboil_button())); |
668 connect(ui->brew_preboilButton, SIGNAL(clicked()), this, SLOT(brew_preboil_button())); |
672 connect(ui->brew_aboilphEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilph_changed); |
669 connect(ui->brew_aboilphEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilph_changed); |
673 connect(ui->brew_aboilsgEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilsg_changed); |
670 connect(ui->brew_aboilsgEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilsg_changed); |
674 connect(ui->brew_aboilvolEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilvol_changed); |
671 connect(ui->brew_aboilvolEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_aboilvol_changed); |
675 connect(ui->brew_aboilButton, SIGNAL(clicked()), this, SLOT(brew_aboil_button())); |
672 connect(ui->brew_aboilButton, SIGNAL(clicked()), this, SLOT(brew_aboil_button())); |
676 connect(ui->brew_coolwithEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditProduct::brew_cooling_method_changed); |
|
677 connect(ui->brew_cooltoEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_cooling_to_changed); |
673 connect(ui->brew_cooltoEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_cooling_to_changed); |
678 connect(ui->brew_cooltimeEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_cooling_time_changed); |
674 connect(ui->brew_cooltimeEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_cooling_time_changed); |
679 connect(ui->brew_whirlpool9Edit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_whirlpool9_changed); |
675 connect(ui->brew_whirlpool9Edit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_whirlpool9_changed); |
680 connect(ui->brew_whirlpool7Edit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_whirlpool7_changed); |
676 connect(ui->brew_whirlpool7Edit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_whirlpool7_changed); |
681 connect(ui->brew_whirlpool6Edit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_whirlpool6_changed); |
677 connect(ui->brew_whirlpool6Edit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditProduct::brew_whirlpool6_changed); |