Fix syncing of visibility and enabled for menus on Cocoa
authorAndy Shaw <andy.shaw@digia.com>
Fri, 28 Sep 2012 13:58:58 +0000 (15:58 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 26 Oct 2012 12:53:09 +0000 (14:53 +0200)
commit356f3c89b83704591e3c37cf8c322b52d6840763
tree05b381f1d5c4086516fa42947ab7937b422fd34e
parenta3941c2f6ef31986bd315fa41bc4df7330a89109
Fix syncing of visibility and enabled for menus on Cocoa

Fixed menu handling on Cocoa so if a menu is enabled/disabled or made
visible or not then it will keep this in sync with the appropriate
native menu entry.

Change-Id: If269185fcf065fb1b2f60d6ef8c27c107eb4509f
Reviewed-by: Pasi Matilainen <pasi.matilainen@digia.com>
Reviewed-by: James Turner <james.turner@kdab.com>
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
src/gui/kernel/qplatformmenu.h
src/plugins/platforms/cocoa/qcocoamenu.h
src/plugins/platforms/cocoa/qcocoamenu.mm
src/plugins/platforms/cocoa/qcocoamenuitem.mm
src/widgets/widgets/qmenubar.cpp
tests/manual/cocoa/menus/main.cpp