Fix set/paperSize(QPrinter::PaperSize) on Mac
authorAndy Shaw <andy.shaw@digia.com>
Thu, 19 Jan 2012 19:44:54 +0000 (20:44 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 25 Jan 2012 12:29:00 +0000 (13:29 +0100)
commitf149b7906cafc032aaff9d61a53079981a6ac497
treec0b909a403ddb0804af7d7f8b4e620c443fce584
parent3135b141bf11cd29d7503be0eb5190d351c2e7fd
Fix set/paperSize(QPrinter::PaperSize) on Mac

This fixes the paper size setting on Mac as it would not return the
same paper size that was set with setPaperSize() when calling
paperSize().

Test is included.

Task-number: QTBUG-20882

Change-Id: Ib0064dd40de147d6db2424cdb31021e66894cc37
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/painting/qprintengine_mac.mm
tests/auto/qprinter/tst_qprinter.cpp