qtquick: Window resizing works on Linux/mac now

This commit is contained in:
Sergio Martins
2020-11-27 13:59:27 +00:00
parent 40fa4e98f8
commit bc2fff2c04
6 changed files with 39 additions and 10 deletions

View File

@@ -54,10 +54,11 @@ WidgetResizeHandler::~WidgetResizeHandler()
bool WidgetResizeHandler::eventFilter(QObject *o, QEvent *e)
{
if (s_disableAllHandlers || o != mTarget)
if (s_disableAllHandlers || o != mTarget) {
return false;
}
auto widget = qobject_cast<QWidget*>(o);
auto widget = qobject_cast<QWidgetOrQuick*>(o);
if (!widget || !widget->isTopLevel()) {
return false;
}