QtPrintSupport - Modify Platform Plugin QPrinterInfo api
authorJohn Layt <jlayt@kde.org>
Mon, 14 May 2012 19:17:16 +0000 (20:17 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 24 May 2012 07:48:27 +0000 (09:48 +0200)
commit36f469bdb1c705f0082610a4fe9fd88b90accd24
treefa96b0b3091d1730966a20d142add5d12d87d400
parentce5c1db2d3db7d7c7af28e9053ca591f76c6101c
QtPrintSupport - Modify Platform Plugin QPrinterInfo api

Change the way the printsupport plugin creates QPrinterInfo
objects, provide platform api to return a named printer, and
expose this as static public api in QPrinterInfo.

Only the Mac plugin used the old api, the other plugins will
have direct support added in separate commits, but will use
the default implementation for now.

Change-Id: I7d6b6556eb39919cfb15bc0e814afbaf13c5712c
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
src/plugins/platforms/cocoa/qcocoaprintersupport.h
src/plugins/platforms/cocoa/qcocoaprintersupport.mm
src/printsupport/kernel/qplatformprintersupport.h
src/printsupport/kernel/qplatformprintersupport_qpa.cpp
src/printsupport/kernel/qprinterinfo.cpp
src/printsupport/kernel/qprinterinfo.h
tests/auto/printsupport/kernel/qprinterinfo/tst_qprinterinfo.cpp