486 connect(ui->perc_caraShow, &QProgressBar::valueChanged, this, &EditRecipe::on_perc_cara_valueChanged); |
486 connect(ui->perc_caraShow, &QProgressBar::valueChanged, this, &EditRecipe::on_perc_cara_valueChanged); |
487 connect(ui->lintnerShow, &QProgressBar::valueChanged, this, &EditRecipe::on_lintner_valueChanged); |
487 connect(ui->lintnerShow, &QProgressBar::valueChanged, this, &EditRecipe::on_lintner_valueChanged); |
488 connect(ui->addFermentable, SIGNAL(clicked()), this, SLOT(on_addFermentRow_clicked())); |
488 connect(ui->addFermentable, SIGNAL(clicked()), this, SLOT(on_addFermentRow_clicked())); |
489 |
489 |
490 // All signals from tab "Hops" |
490 // All signals from tab "Hops" |
|
491 ui->hopsTable->setEditTriggers(QAbstractItemView::NoEditTriggers); |
491 connect(ui->hop_tasteShow, &QProgressBar::valueChanged, this, &EditRecipe::on_Flavour_valueChanged); |
492 connect(ui->hop_tasteShow, &QProgressBar::valueChanged, this, &EditRecipe::on_Flavour_valueChanged); |
492 connect(ui->hop_aromaShow, &QProgressBar::valueChanged, this, &EditRecipe::on_Aroma_valueChanged); |
493 connect(ui->hop_aromaShow, &QProgressBar::valueChanged, this, &EditRecipe::on_Aroma_valueChanged); |
493 // connect(ui->hopsTable, SIGNAL(cellChanged(int, int)), this, SLOT(cell_Changed(int, int))); |
494 connect(ui->addHop, SIGNAL(clicked()), this, SLOT(on_addHopRow_clicked())); |
494 |
495 |
495 // All signals from tab "Miscs" |
496 // All signals from tab "Miscs" |
496 // connect(ui->hopsTable, SIGNAL(cellChanged(int, int)), this, SLOT(cell_Changed(int, int))); |
497 // connect(ui->hopsTable, SIGNAL(cellChanged(int, int)), this, SLOT(cell_Changed(int, int))); |
497 |
498 |
498 // All signals from tab "Yeasts" |
499 // All signals from tab "Yeasts" |
887 #include "EditRecipeTab2.cpp" |
888 #include "EditRecipeTab2.cpp" |
888 #include "EditRecipeTab3.cpp" |
889 #include "EditRecipeTab3.cpp" |
889 #include "EditRecipeTab4.cpp" |
890 #include "EditRecipeTab4.cpp" |
890 #include "EditRecipeTab5.cpp" |
891 #include "EditRecipeTab5.cpp" |
891 #include "EditRecipeTab6.cpp" |
892 #include "EditRecipeTab6.cpp" |
|
893 #include "EditRecipeTab7.cpp" |
892 |
894 |
893 |
895 |
894 void EditRecipe::on_deleteButton_clicked() |
896 void EditRecipe::on_deleteButton_clicked() |
895 { |
897 { |
896 QSqlQuery query; |
898 QSqlQuery query; |