131 connect(ui->wkEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditFermentable::wk_changed); |
131 connect(ui->wkEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditFermentable::wk_changed); |
132 connect(ui->lintnerEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditFermentable::lintner_changed); |
132 connect(ui->lintnerEdit, QOverload<double>::of(&QDoubleSpinBox::valueChanged), this, &EditFermentable::lintner_changed); |
133 connect(ui->diphEdit, &QDoubleSpinBox::textChanged, this, &EditFermentable::is_changed); |
133 connect(ui->diphEdit, &QDoubleSpinBox::textChanged, this, &EditFermentable::is_changed); |
134 connect(ui->acidphEdit, &QDoubleSpinBox::textChanged, this, &EditFermentable::is_changed); |
134 connect(ui->acidphEdit, &QDoubleSpinBox::textChanged, this, &EditFermentable::is_changed); |
135 connect(ui->prodEdit, &QDateEdit::dateChanged, this, &EditFermentable::is_changed); |
135 connect(ui->prodEdit, &QDateEdit::dateChanged, this, &EditFermentable::is_changed); |
|
136 connect(ui->prodButton1, SIGNAL(clicked()), this, SLOT(prod_date_today())); |
|
137 connect(ui->prodButton2, SIGNAL(clicked()), this, SLOT(prod_date_clear())); |
136 connect(ui->thtEdit, &QDateEdit::dateChanged, this, &EditFermentable::is_changed); |
138 connect(ui->thtEdit, &QDateEdit::dateChanged, this, &EditFermentable::is_changed); |
|
139 connect(ui->thtButton1, SIGNAL(clicked()), this, SLOT(tht_date_today())); |
|
140 connect(ui->thtButton2, SIGNAL(clicked()), this, SLOT(tht_date_clear())); |
137 |
141 |
138 ui->saveButton->setEnabled(false); |
142 ui->saveButton->setEnabled(false); |
139 ui->deleteButton->setEnabled((ui->inventoryEdit->value() == 0 && id >= 0) ? true:false); |
143 ui->deleteButton->setEnabled((ui->inventoryEdit->value() == 0 && id >= 0) ? true:false); |
140 } |
144 } |
141 |
145 |