bool KitchenAlertMainWindow::event(QEvent *event)
{
- QMainWindow::event(event);
-
switch (event->type())
model_.setUpdateViewOnChanges(true);
ui->debugLabel->setText("Returned to the application!");
-
-
- break;
+ break;
case QEvent::WindowDeactivate:
model_.setUpdateViewOnChanges(false);
default:
break;
-
}
+
+ return QMainWindow::event(event); // Send the event to the base class implementation (also when handling the event in this function): necessary for the program to work!
}
void KitchenAlertMainWindow::disableSelectionDependentButtons()