Don't handle QEvent::Hide anymore

Update the buttons in DockWidget::setIsOpen() instead.
This makes the controllers self-contained and not depending
on the "view technology". Other frameworks might not even
have the concept of show/hidden events
This commit is contained in:
Sergio Martins
2022-09-10 11:37:32 +01:00
parent 3a280ae377
commit b5a9c03c21
4 changed files with 3 additions and 14 deletions

View File

@@ -78,8 +78,6 @@ bool DockWidget_qtwidgets::event(QEvent *e)
{
if (e->type() == QEvent::Show) {
m_dockWidget->onShown();
} else if (e->type() == QEvent::Hide) {
m_dockWidget->onHidden();
}
return QWidget::event(e);