diff options
author | Morten Johan Sørvig <morten.sorvig@digia.com> | 2013-03-25 09:31:47 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-03-29 13:06:40 +0100 |
commit | fc8759064c1f5200f46efd97eb18cdf058024d72 (patch) | |
tree | c04a6eeb71e4d73667723bc0a4c58b18b32ac161 /src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm | |
parent | c0065187d7c823b2229ca9f02d42a4049936fad6 (diff) |
Make qt_setDockMenu work and call it.
The application delegate code from Qt 4 implements
a non-working qt_setDockMenu. Correct the signature
of the applicationDockMenu method.
Change-Id: I6f531a78f91e0550b0e66cc4f2fa072006a030f4
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm index e1569d4f44..f676d613bc 100644 --- a/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm +++ b/src/plugins/platforms/cocoa/qcocoaapplicationdelegate.mm @@ -145,8 +145,9 @@ static void cleanupCocoaApplicationDelegate() dockMenu = newMenu; } -- (NSMenu *)applicationDockMenu +- (NSMenu *)applicationDockMenu:(NSApplication *)sender { + Q_UNUSED(sender); return [[dockMenu retain] autorelease]; } |