qt6-bb10/src
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
..
3rdparty Update our V8 2011-09-02 14:11:41 +02:00
corelib Cocoa: QMenu refactor. 2011-09-07 11:00:36 +02:00
dbus Make the DBus timeout configurable in QDBusAbstractInterface. 2011-08-25 11:36:52 +02:00
gui Cocoa: QMenu refactor. 2011-09-07 11:00:36 +02:00
modules Merge remote branch 'gerrit/master' into refactor 2011-08-30 11:51:20 +02:00
network QSslCertificate: also check common name for blacklisted certificates 2011-09-02 14:14:15 +02:00
opengl Fixed tst_QGL::destroyFBOAfterContext(). 2011-09-07 10:09:36 +02:00
platformsupport Mac: make platformsupport a static lib 2011-09-01 13:04:11 +02:00
plugins Cocoa: QMenu refactor. 2011-09-07 11:00:36 +02:00
printsupport Mac: Fix link error in printdialog. 2011-08-23 09:14:28 +02:00
s60installs update def files 2011-05-11 16:40:09 +02:00
s60main Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
sql Merge branch 'master' into refactor 2011-08-25 12:48:52 +02:00
testlib add support for QWindow in mouseEvent 2011-09-06 16:45:50 +02:00
tools Merge remote branch 'gerrit/master' into HEAD 2011-09-06 10:55:40 +02:00
uitools Merge branch 'master' into refactor 2011-08-25 12:48:52 +02:00
v8 Merge remote branch 'gerrit/master' into HEAD 2011-09-06 10:55:40 +02:00
widgets Cocoa: QMenu refactor. 2011-09-07 11:00:36 +02:00
winmain Windows: fixed qtmain.lib not going to `lib' directory 2011-07-26 03:27:34 +02:00
xml QXmlStream lives in QtCore 2011-08-11 16:21:14 +02:00
qbase.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_install.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
qt_targets.pri Moved common module profiles to be feature profiles. 2011-06-05 14:47:14 +02:00
src.pro Merge remote branch 'gerrit/master' into HEAD 2011-09-06 10:55:40 +02:00