Compile with -no-widgets.
authorMorten Johan Sorvig <morten.sorvig@digia.com>
Wed, 17 Oct 2012 12:23:32 +0000 (14:23 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 19 Nov 2012 07:30:05 +0000 (08:30 +0100)
commitcfa0f3bd5673c54981383557cac863e44c8d40a7
tree16c378fcf80aaf66ed0965a7364552ab826f3cb8
parenta0af6c8e4ac3bc45992bebe5ffe5b2daf363d862
Compile with -no-widgets.

Remove QApplication usage in qcocoasystemtrayicon.mm

Move qt_mac_cg_context from qpaintengine_mac.mm to
qcocoahelpers.mm to make it available in no-widgets
builds.

(Move qt_mac_colorSpaceForDeviceType as well; color
space support needs to be cleaned up later on.)

Change-Id: I724fdb09538d65eae56c26165f3ba53b6814ea78
Reviewed-by: Liang Qi <liang.qi@digia.com>
src/plugins/platforms/cocoa/qcocoahelpers.h
src/plugins/platforms/cocoa/qcocoahelpers.mm
src/plugins/platforms/cocoa/qcocoasystemtrayicon.mm
src/plugins/platforms/cocoa/qpaintengine_mac.mm