qt6-bb10/src/corelib/kernel
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
..
kernel.pri Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
qabstracteventdispatcher.cpp Use QFreeList for timer id allocation 2011-07-26 13:40:07 +02:00
qabstracteventdispatcher.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qabstracteventdispatcher_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qabstractitemmodel.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qabstractitemmodel.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qabstractitemmodel_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qbasictimer.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qbasictimer.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcore_mac.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcore_mac_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcore_symbian_p.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcore_symbian_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcore_unix.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcore_unix_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcoreapplication.cpp Cocoa: QMenu refactor. 2011-09-07 11:00:36 +02:00
qcoreapplication.h Merge remote branch 'gerrit/master' into refactor 2011-07-06 14:08:02 +02:00
qcoreapplication_mac.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcoreapplication_p.h Merge remote branch 'gerrit/master' into HEAD 2011-09-06 10:55:40 +02:00
qcoreapplication_win.cpp Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
qcorecmdlineargs_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcoreevent.cpp Merge remote branch 'gerrit/master' into refactor 2011-07-21 14:42:46 +02:00
qcoreevent.h Merge remote branch 'gerrit/master' into refactor 2011-07-06 14:08:02 +02:00
qcoreglobaldata.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcoreglobaldata_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcrashhandler.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qcrashhandler_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qeventdispatcher_glib.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qeventdispatcher_glib_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qeventdispatcher_symbian.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qeventdispatcher_symbian_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qeventdispatcher_unix.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qeventdispatcher_unix_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qeventdispatcher_win.cpp QEventDispatcherWin32: Remove hook to dispatch GUI events. 2011-06-30 15:40:43 +02:00
qeventdispatcher_win_p.h QEventDispatcherWin32: Remove hook to dispatch GUI events. 2011-06-30 15:40:43 +02:00
qeventloop.cpp Replace try/catch blocks in favour of destructors in the event loop. 2011-07-11 12:43:52 +02:00
qeventloop.h Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qfunctions_nacl.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfunctions_nacl.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfunctions_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfunctions_vxworks.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfunctions_vxworks.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfunctions_wince.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qfunctions_wince.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qmath.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qmath.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qmath.qdoc Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qmetaobject.cpp Optimize QMetaObject::property(). 2011-07-22 06:06:45 +02:00
qmetaobject.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qmetaobject_p.h Flag meta objects generated by QtDBus 2011-07-29 05:19:47 +02:00
qmetatype.cpp Merge remote branch 'gerrit/master' into refactor 2011-07-06 14:08:02 +02:00
qmetatype.h Merge remote branch 'gerrit/master' into refactor 2011-07-06 14:08:02 +02:00
qmimedata.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qmimedata.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qobject.cpp Merge remote branch 'gerrit/master' into refactor 2011-08-30 11:51:20 +02:00
qobject.h Merge branch 'master' into refactor 2011-08-25 12:48:52 +02:00
qobject_p.h Add a signal emitted callback to QAbstractDeclarativeData 2011-08-30 02:23:38 +02:00
qobjectcleanuphandler.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qobjectcleanuphandler.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qobjectdefs.h Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qpointer.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qpointer.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsharedmemory.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsharedmemory.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsharedmemory_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsharedmemory_symbian.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsharedmemory_unix.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsharedmemory_win.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsignalmapper.cpp Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qsignalmapper.h Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qsocketnotifier.cpp Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qsocketnotifier.h Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qsystemerror.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsystemerror_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsystemsemaphore.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsystemsemaphore.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsystemsemaphore_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsystemsemaphore_symbian.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsystemsemaphore_unix.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qsystemsemaphore_win.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtcore_eval.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qtimer.cpp Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qtimer.h Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qtranslator.cpp Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qtranslator.h Remove the remaining QT3_SUPPORT code in corelib 2011-06-29 15:10:14 +02:00
qtranslator_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qvariant.cpp Doc: Removed documentation for deleted code. 2011-07-21 08:54:07 +02:00
qvariant.h Merge remote branch 'gerrit/master' into refactor 2011-07-06 14:08:02 +02:00
qvariant_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qwineventnotifier_p.cpp Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
qwineventnotifier_p.h Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00