diff options
author | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-05-07 13:46:23 +0200 |
---|---|---|
committer | Richard Moe Gustavsen <richard.gustavsen@nokia.com> | 2010-05-20 15:22:46 +0200 |
commit | 59b0bce57a9f8e16c735a99463c208a6c11bb1ba (patch) | |
tree | 67a92930bb653f4f81f0860b62a321a887f61d72 /src/gui/kernel/qcocoasharedwindowmethods_mac_p.h | |
parent | 2134980e4c480c04852ebeda138bdc656233a8f6 (diff) |
Cocoa: Add support for native application event filter
Support for adding application wide filters were never
implemented for the cocoa port because of NSApplication
singleton issues. This patch removes that problem by
using introspection if needed. And the patch also makes
qt_cocoaPostMessage more reliable.
Diffstat (limited to 'src/gui/kernel/qcocoasharedwindowmethods_mac_p.h')
-rw-r--r-- | src/gui/kernel/qcocoasharedwindowmethods_mac_p.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gui/kernel/qcocoasharedwindowmethods_mac_p.h b/src/gui/kernel/qcocoasharedwindowmethods_mac_p.h index 86528160eb..717cfa5ed7 100644 --- a/src/gui/kernel/qcocoasharedwindowmethods_mac_p.h +++ b/src/gui/kernel/qcocoasharedwindowmethods_mac_p.h @@ -149,17 +149,6 @@ QT_END_NAMESPACE - (void)sendEvent:(NSEvent *)event { - if ([event type] == NSApplicationDefined) { - switch ([event subtype]) { - case QtCocoaEventSubTypePostMessage: - [NSApp qt_sendPostedMessage:event]; - return; - default: - break; - } - return; - } - QWidget *widget = [[QT_MANGLE_NAMESPACE(QCocoaWindowDelegate) sharedDelegate] qt_qwidgetForWindow:self]; // Cocoa can hold onto the window after we've disavowed its knowledge. So, // if we get sent an event afterwards just have it go through the super's |