src/EditProductTab1.cpp

changeset 211
bec0386b1df1
parent 210
b45bd6da5220
child 214
641540dc6ef2
equal deleted inserted replaced
210:b45bd6da5220 211:bec0386b1df1
297 } 297 }
298 ui->mw_autoEdit->setDisabled(stage > PROD_STAGE_BREW); 298 ui->mw_autoEdit->setDisabled(stage > PROD_STAGE_BREW);
299 299
300 /* Tab 9, brewday */ 300 /* Tab 9, brewday */
301 ui->tabWidget->setTabEnabled(8, stage > PROD_STAGE_PLAN); 301 ui->tabWidget->setTabEnabled(8, stage > PROD_STAGE_PLAN);
302 if (product->log_brew) {
303 ui->brew_logLabel->show();
304 ui->brew_logButton->show();
305 } else {
306 ui->brew_logLabel->hide();
307 ui->brew_logButton->hide();
308 }
302 if (product->stage < PROD_STAGE_BREW) { 309 if (product->stage < PROD_STAGE_BREW) {
303 ui->brew_startButton1->show(); 310 ui->brew_startButton1->show();
304 ui->brew_startButton2->show(); 311 ui->brew_startButton2->show();
305 ui->brew_startDate->setReadOnly(false); 312 ui->brew_startDate->setReadOnly(false);
306 ui->brew_endButton1->hide(); 313 ui->brew_endButton1->hide();

mercurial