Remove duplicated function from QCocoaEventDispatcher
authorBradley T. Hughes <bradley.hughes@nokia.com>
Wed, 1 Feb 2012 13:02:02 +0000 (14:02 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 2 Feb 2012 08:27:25 +0000 (09:27 +0100)
commitb2b3abe0ebc0ca147e1a29d06d1872bc09bf16cc
tree83c0b86549cd05525a93dc9542e204622f2e8d40
parent8fad23f3261bdcf9bd0e11980ebfc3b00c2469c6
Remove duplicated function from QCocoaEventDispatcher

The qt_mac_waitForMoreModalSessionEvents() is identical to
qt_mac_waitForMoreEvents(), except that it passes a different inMode
parameter to [NSApp nextEventMatchingMask]. Change the latter function
to take the mode as a parameter itself, defaulting to the default mode.

Change the dequeue parameter to [NSApp nextEventMatchingMask] from YES
to NO. Having the function dequeue the event, and then immediately
reposting the event is not necessary.

Change-Id: Iba45d41ad3ff4d5721d1068e6d5c78585cb15810
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@nokia.com>
src/plugins/platforms/cocoa/qcocoaeventdispatcher.mm