qt5base-lts/tests/auto/widgets/kernel/qwidget_window
Giuseppe D'Angelo 51af196ba0 QWidgetWindow: use sendEvent to forward events to the wrapped QWidget
The fallback code for unhandled event types in QWidgetWindow::event
directly called event() on the underlying QWidget (i.e. m_widget->event(e)).

The problem with that approach is that it does not activate any
event filters that can have been installed on the top level widget.
Instead, let's use sendEvent to forward the event to the widget.

An extra modification becomes necessary:
the events received when creating/showing/etc. a widget change,
hence the corresponding test needs to be tuned. On the other hand,
apparently this fixes a long time XFAIL in that test.

Task-number: QTBUG-42281
Task-number: QTBUG-26424
Change-Id: I237bbbc301e3e9e10f071589629c71343a600ef9
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2015-03-26 20:42:54 +00:00
..
.gitignore
qwidget_window.pro Remove executable mode on qwidget_window.pro 2014-10-31 02:23:56 +01:00
tst_qwidget_window.cpp QWidgetWindow: use sendEvent to forward events to the wrapped QWidget 2015-03-26 20:42:54 +00:00