src/EditRecipe.cpp

changeset 150
fd568cc1dd0e
parent 149
d73719fa2ebb
child 151
b5b2483f3a3f
equal deleted inserted replaced
149:d73719fa2ebb 150:fd568cc1dd0e
648 648
649 // All signals from tab "Generic" 649 // All signals from tab "Generic"
650 connect(ui->lockedEdit, &QCheckBox::stateChanged, this, &EditRecipe::is_changed); 650 connect(ui->lockedEdit, &QCheckBox::stateChanged, this, &EditRecipe::is_changed);
651 connect(ui->nameEdit, &QLineEdit::textChanged, this, &EditRecipe::name_changed); 651 connect(ui->nameEdit, &QLineEdit::textChanged, this, &EditRecipe::name_changed);
652 connect(ui->notesEdit, SIGNAL(textChanged()), this, SLOT(notes_changed())); 652 connect(ui->notesEdit, SIGNAL(textChanged()), this, SLOT(notes_changed()));
653 connect(ui->typeEdit, &QComboBox::currentTextChanged, this, &EditRecipe::is_changed); 653 connect(ui->typeEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditRecipe::brew_type_changed);
654 connect(ui->batch_sizeEdit, &QDoubleSpinBox::textChanged, this, &EditRecipe::is_changed); 654 connect(ui->batch_sizeEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::batch_size_changed);
655 connect(ui->boil_timeEdit, &QSpinBox::textChanged, this, &EditRecipe::is_changed); 655 connect(ui->boil_timeEdit, QOverload<int>::of(&QSpinBox::valueChanged), this, &EditRecipe::boil_time_changed);
656 connect(ui->efficiencyEdit, &QDoubleSpinBox::textChanged, this, &EditRecipe::is_changed); 656 connect(ui->efficiencyEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::efficiency_changed);
657 connect(ui->beerstyleEdit, &QComboBox::currentTextChanged, this, &EditRecipe::style_changed); 657 connect(ui->beerstyleEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditRecipe::style_changed);
658 connect(ui->est_ogEdit, &QDoubleSpinBox::textChanged, this, &EditRecipe::is_changed); 658 connect(ui->est_ogEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::est_og_changed);
659 connect(ui->color_methodEdit, &QComboBox::currentTextChanged, this, &EditRecipe::colormethod_changed); 659 connect(ui->color_methodEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditRecipe::colormethod_changed);
660 connect(ui->ibu_methodEdit, &QComboBox::currentTextChanged, this, &EditRecipe::is_changed); 660 connect(ui->ibu_methodEdit, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &EditRecipe::ibumethod_changed);
661 661
662 // All signals from tab "Fermentables" 662 // All signals from tab "Fermentables"
663 ui->fermentablesTable->setEditTriggers(QAbstractItemView::NoEditTriggers); 663 ui->fermentablesTable->setEditTriggers(QAbstractItemView::NoEditTriggers);
664 connect(ui->est_og2Edit, &QDoubleSpinBox::textChanged, this, &EditRecipe::is_changed); 664 connect(ui->est_og2Edit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditRecipe::est_og_changed);
665 connect(ui->perc_mashShow, &QProgressBar::valueChanged, this, &EditRecipe::ferment_perc_mash_valueChanged); 665 connect(ui->perc_mashShow, &QProgressBar::valueChanged, this, &EditRecipe::ferment_perc_mash_valueChanged);
666 connect(ui->perc_sugarsShow, &QProgressBar::valueChanged, this, &EditRecipe::ferment_perc_sugars_valueChanged); 666 connect(ui->perc_sugarsShow, &QProgressBar::valueChanged, this, &EditRecipe::ferment_perc_sugars_valueChanged);
667 connect(ui->perc_caraShow, &QProgressBar::valueChanged, this, &EditRecipe::ferment_perc_cara_valueChanged); 667 connect(ui->perc_caraShow, &QProgressBar::valueChanged, this, &EditRecipe::ferment_perc_cara_valueChanged);
668 connect(ui->lintnerShow, &QProgressBar::valueChanged, this, &EditRecipe::ferment_lintner_valueChanged); 668 connect(ui->lintnerShow, &QProgressBar::valueChanged, this, &EditRecipe::ferment_lintner_valueChanged);
669 connect(ui->addFermentable, SIGNAL(clicked()), this, SLOT(addFermentRow_clicked())); 669 connect(ui->addFermentable, SIGNAL(clicked()), this, SLOT(addFermentRow_clicked()));

mercurial