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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user