Mac: When using Qt as a plugin app, menubars does not work
commitba60e4bedde9c8ef002289ebe60d25ad95f20707
authorRichard Moe Gustavsen <richard.gustavsen@nokia.com>
Tue, 25 Aug 2009 09:24:31 +0000 (25 11:24 +0200)
committerRichard Moe Gustavsen <richard.gustavsen@nokia.com>
Tue, 25 Aug 2009 09:50:43 +0000 (25 11:50 +0200)
tree51d7ac62fcba5a64c0ccd3a6e765b392ba8d2e91
parentf29e1bc7b7a593ef65defa3543b0feea455c7cdb
Mac: When using Qt as a plugin app, menubars does not work

It seems like we don't respect the Qt::AA_MacPluginApplication
attribute. Setting this attribute means that the native application
should control the menu bar. This patch does a check for this, and
leaves the menubar alone if its set.
We could consider allowing menubars if the Qt::AA_DontUseNativeMenuBar
is set (those should placed inside the window)

Reviewed-by: msorvig
src/gui/widgets/qmenu_mac.mm