diff options
author | Morten Johan Sorvig <morten.sorvig@digia.com> | 2012-10-17 14:23:32 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-11-19 08:30:05 +0100 |
commit | cfa0f3bd5673c54981383557cac863e44c8d40a7 (patch) | |
tree | 16c378fcf80aaf66ed0965a7364552ab826f3cb8 /src/plugins/platforms/cocoa/qcocoahelpers.h | |
parent | a0af6c8e4ac3bc45992bebe5ffe5b2daf363d862 (diff) |
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>
Diffstat (limited to 'src/plugins/platforms/cocoa/qcocoahelpers.h')
-rw-r--r-- | src/plugins/platforms/cocoa/qcocoahelpers.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/qcocoahelpers.h b/src/plugins/platforms/cocoa/qcocoahelpers.h index 2de955c273..de98d5219e 100644 --- a/src/plugins/platforms/cocoa/qcocoahelpers.h +++ b/src/plugins/platforms/cocoa/qcocoahelpers.h @@ -99,6 +99,7 @@ void qt_mac_transformProccessToForegroundApplication(); QString qt_mac_removeMnemonics(const QString &original); CGColorSpaceRef qt_mac_genericColorSpace(); CGColorSpaceRef qt_mac_displayColorSpace(const QWidget *widget); +CGColorSpaceRef qt_mac_colorSpaceForDeviceType(const QPaintDevice *paintDevice); QString qt_mac_applicationName(); inline int qt_mac_flipYCoordinate(int y) @@ -157,6 +158,8 @@ public: } }; +CGContextRef qt_mac_cg_context(const QPaintDevice *pdev); + QT_END_NAMESPACE #endif //QCOCOAHELPERS_H |