qt5base-lts/tests/auto/widgets/kernel
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
..
qaction Update copyright headers 2015-02-11 06:49:51 +00:00
qactiongroup Update copyright headers 2015-02-11 06:49:51 +00:00
qapplication autotests: fix the build in case of QT_NO_WHEELEVENT 2015-03-03 13:30:39 +00:00
qboxlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qdesktopwidget Update copyright headers 2015-02-11 06:49:51 +00:00
qformlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qgridlayout Merge remote-tracking branch 'origin/5.4' into 5.5 2015-02-24 21:02:08 +01:00
qlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qshortcut Update copyright headers 2015-02-11 06:49:51 +00:00
qsizepolicy QtWidgets: assorted migrations to QString::asprintf 2015-02-12 19:39:49 +00:00
qstackedlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qtooltip Update copyright headers 2015-02-11 06:49:51 +00:00
qwidget QWidgetWindow: use sendEvent to forward events to the wrapped QWidget 2015-03-26 20:42:54 +00:00
qwidget_window QWidgetWindow: use sendEvent to forward events to the wrapped QWidget 2015-03-26 20:42:54 +00:00
qwidgetaction Update copyright headers 2015-02-11 06:49:51 +00:00
qwidgetmetatype Update copyright headers 2015-02-11 06:49:51 +00:00
qwidgetsvariant Update copyright headers 2015-02-11 06:49:51 +00:00
qwindowcontainer Update copyright headers 2015-02-11 06:49:51 +00:00
kernel.pro Introducing QWidget::createWindowContainer() 2013-01-25 14:11:07 +01:00