diff options
author | Bradley T. Hughes <bradley.hughes@nokia.com> | 2012-02-29 15:23:22 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-03-15 09:50:18 +0100 |
commit | 4f246bceb5958cb7ae86d7c5d59c78cad25bdd56 (patch) | |
tree | 11fcbfe821c66ed49a7df053c12d594016804410 /src/plugins/platforms/cocoa/cocoa.pro | |
parent | 7e3c632e96dbbd6f577c2ba98464a54176c5b7b0 (diff) |
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>
Diffstat (limited to 'src/plugins/platforms/cocoa/cocoa.pro')
-rw-r--r-- | src/plugins/platforms/cocoa/cocoa.pro | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platforms/cocoa/cocoa.pro b/src/plugins/platforms/cocoa/cocoa.pro index 9aca393a10..c42932520f 100644 --- a/src/plugins/platforms/cocoa/cocoa.pro +++ b/src/plugins/platforms/cocoa/cocoa.pro @@ -34,6 +34,7 @@ OBJECTIVE_SOURCES += main.mm \ qcocoainputcontext.mm \ qpaintengine_mac.mm \ qprintengine_mac.mm \ + qcocoaprintersupport.mm \ HEADERS += qcocoaintegration.h \ qcocoatheme.h \ @@ -65,6 +66,7 @@ HEADERS += qcocoaintegration.h \ qcocoainputcontext.h \ qpaintengine_mac_p.h \ qprintengine_mac_p.h \ + qcocoaprintersupport.h \ FORMS += $$PWD/../../../widgets/dialogs/qfiledialog.ui RESOURCES += qcocoaresources.qrc |