Move updating size constraints from FloatingWindow view to controller

This commit is contained in:
Sergio Martins
2022-06-13 02:28:56 +01:00
parent e49ecc880e
commit efc42e8d3f
2 changed files with 5 additions and 3 deletions

View File

@@ -99,9 +99,7 @@ bool FloatingWindow_qtwidgets::event(QEvent *ev)
Q_EMIT m_controller->activatedChanged();
} else if (ev->type() == QEvent::StatusTip && QWidget::parent()) {
// show status tips in the main window
return QWidget::parent()->event(ev); // TODm2: Move to base class
} else if (ev->type() == QEvent::LayoutRequest) {
m_controller->updateSizeConstraints(); // TODOm2: Move to base class
return QWidget::parent()->event(ev); // TODOm3: Move to base class
}
return View_qtwidgets<QWidget>::event(ev);