qt5base-lts/src/corelib
Morten Sorvig cee63e2c17 Cocoa: QMenu refactor.
This change prepares for enabling native menus
on OS X.

Move code from src/widgets to cocoa:
- qcocoaapplicaiton
- qcocoaapplicaitondelegate
- qcocoamenuloader
- qcocoamenu
- qmenu_mac
- misc helpers to qcocoahelpers

Create a QNSApplication and
QCocoaApplicationDelegate at application startup.

New Lighthouse API:
- class QPlatformMenu
- class QPlatformMenuBar
- QPlatformIntegration::createPlatformMenu()
- QPlatformIntegration::createPlatformMenuBar()

Platforms that wants a native menu integration
subclasses QPlatformMenu[|Bar] and implements the
create function. The default implementation returns
0, which causes QMenu to use the standard Qt
menus.

This API is based on the current native menu
abstraction that Mac, Wince and S60 uses in Qt 4.
The main difference is that the platform classes are
proper standalone classes and not #ifdeffed into
QMenuPrivate.

Change-Id: I3da41f80b0ae903a476937908b1f9b88014b7954
Reviewed-on: http://codereview.qt.nokia.com/4068
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
2011-09-07 11:00:36 +02:00
..
animation Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
arch Fix compilation with thumb2. 2011-08-18 17:59:18 +02:00
codecs Doc: Removed documentation for deleted code. 2011-07-21 08:54:07 +02:00
concurrent Cleanup reference counting in internal::Base class (qtconcurrent) 2011-07-11 18:58:41 +02:00
global Merge remote branch 'gerrit/master' into HEAD 2011-09-06 10:55:40 +02:00
io Merge remote branch 'gerrit/master' into HEAD 2011-09-06 10:55:40 +02:00
kernel Cocoa: QMenu refactor. 2011-09-07 11:00:36 +02:00
plugin Merge remote branch 'gerrit/master' into HEAD 2011-09-06 10:55:40 +02:00
statemachine Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
thread Merge branch 'master' into refactor 2011-08-25 12:48:52 +02:00
tools Merge remote branch 'gerrit/master' into HEAD 2011-09-06 10:55:40 +02:00
xml Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
corelib.pro Fix modules to load(qt_module) first 2011-06-08 21:04:48 +02:00
eval.pri Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
QtCore.dynlist Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00