Don't keep PMPrint* state separate from NSPrintInfo
authorBradley T. Hughes <bradley.hughes@nokia.com>
Mon, 5 Mar 2012 13:40:00 +0000 (14:40 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 15 Mar 2012 08:50:18 +0000 (09:50 +0100)
commit7dde92d7d1639a1ea8bee39d5250bc58102dc4c8
tree5f33ce5071688be1397ecf17c2e189bc97838076
parent4f246bceb5958cb7ae86d7c5d59c78cad25bdd56
Don't keep PMPrint* state separate from NSPrintInfo

When we need to use PMPrintSession, PMPrintSettings, and PMPageLayout,
get these directly from the NSPrintInfo when needed. This avoids us
needing to keep the settings in sync. The native dialogs can then only
rely on getting a pointer to NSPrintInfo (to be done in a future
commit).

Change-Id: I4720284dcf999e454f86766b4291fbda7bf3c537
Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
src/plugins/platforms/cocoa/qprintengine_mac.mm
src/plugins/platforms/cocoa/qprintengine_mac_p.h