From 768e587cdcd74d9d5da0a477eede9ae37a24fb48 Mon Sep 17 00:00:00 2001 From: "Bradley T. Hughes" Date: Thu, 29 Mar 2012 09:25:29 +0200 Subject: Add QPlatformWindow::windowEvent() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This function is used to pass non-spontaneous events from QWindow to QPlatformWindow so that QPlatformWindow subclasses can do any platform specific event handling (such as setting/clearing modality flags on QEvent::WindowBlock/WindowUnblock). Change-Id: I82a89e8dadcd2f706aae25889d79cbfac9c2ee18 Reviewed-by: Friedemann Kleint Reviewed-by: Samuel Rødal --- src/widgets/kernel/qapplication.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/widgets') diff --git a/src/widgets/kernel/qapplication.cpp b/src/widgets/kernel/qapplication.cpp index c560dba1b7..e82f5c1531 100644 --- a/src/widgets/kernel/qapplication.cpp +++ b/src/widgets/kernel/qapplication.cpp @@ -2992,6 +2992,8 @@ bool QApplication::notify(QObject *receiver, QEvent *e) d->checkReceiverThread(receiver); #endif + QGuiApplicationPrivate::sendQWindowEventToQPlatformWindow(qobject_cast(receiver), e); + // capture the current mouse/keyboard state if(e->spontaneous()) { if (e->type() == QEvent::MouseButtonPress -- cgit v1.2.3