summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qcocoasharedwindowmethods_mac_p.h
diff options
context:
space:
mode:
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>2010-05-07 11:46:23 (GMT)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>2010-05-20 13:22:46 (GMT)
commit59b0bce57a9f8e16c735a99463c208a6c11bb1ba (patch)
tree67a92930bb653f4f81f0860b62a321a887f61d72 /src/gui/kernel/qcocoasharedwindowmethods_mac_p.h
parent2134980e4c480c04852ebeda138bdc656233a8f6 (diff)
downloadQt-59b0bce57a9f8e16c735a99463c208a6c11bb1ba.zip
Qt-59b0bce57a9f8e16c735a99463c208a6c11bb1ba.tar.gz
Qt-59b0bce57a9f8e16c735a99463c208a6c11bb1ba.tar.bz2
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.h11
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 8652816..717cfa5 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