Add a QPlatformPrinterSupportPlugin for Cocoa
authorBradley T. Hughes <bradley.hughes@nokia.com>
Wed, 29 Feb 2012 14:23:22 +0000 (15:23 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Mar 2012 08:50:18 +0000 (09:50 +0100)
commit4f246bceb5958cb7ae86d7c5d59c78cad25bdd56
tree11fcbfe821c66ed49a7df053c12d594016804410
parent7e3c632e96dbbd6f577c2ba98464a54176c5b7b0
Add a QPlatformPrinterSupportPlugin for Cocoa

This is used to create the actual QPrintEngine and to query the system
about printer information.

The QCocoaPrinterSupport actually lives in the Cocoa platform plugin,
so the QCocoaPrinterSupportPlugin uses the
createPlatformPrinterSupport() function in the QPlatformNativeInterface
(since the latter is a QObject). This is done to avoid adding a printing
related virtual function to QPlatformIntegration (since we have plans
to do a new printing API in the future).

Change-Id: I8bf9be668ff8ae1d07840e2af1e0846dc3299334
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/plugins/platforms/cocoa/cocoa.pro
src/plugins/platforms/cocoa/qcocoanativeinterface.h
src/plugins/platforms/cocoa/qcocoanativeinterface.mm
src/plugins/platforms/cocoa/qcocoaprintersupport.h [new file with mode: 0644]
src/plugins/platforms/cocoa/qcocoaprintersupport.mm [new file with mode: 0644]
src/plugins/printsupport/cocoa/cocoa.json [new file with mode: 0644]
src/plugins/printsupport/cocoa/cocoa.pro [new file with mode: 0644]
src/plugins/printsupport/cocoa/main.cpp [new file with mode: 0644]
src/plugins/printsupport/printsupport.pro