Ensure that printer orientation is preserved
authorTitta Heikkala <titta.heikkala@digia.com>
Thu, 9 Aug 2012 07:54:09 +0000 (10:54 +0300)
committerQt by Nokia <qt-info@nokia.com>
Thu, 30 Aug 2012 06:54:59 +0000 (08:54 +0200)
commit1cebd906af95e2c8ae37f1eae4a1c5019640b3b3
tree4720835ce8fa3d0018a9a364b7d9994a5e470059
parentf7de5b09234e7dd735d91a7b332d841ca6c6fe53
Ensure that printer orientation is preserved

After setting the printer name the initialization is no longer done for
a printer with a name. Instead doReinit() method is called to preserve
the orientation (set with setOrientation() method before calling
setPrinterName()). Before the orientation was changed back to default
when setPrinterName() method was called ignoring the orientation set.

Updated also the autotest because the case:
taskQTBUG4497_reusePrinterOnDifferentFiles() is no longer expected to
fail on Windows.

Task-number: QTBUG-26008
Change-Id: Ia6bc9ae14d79a646e61bfc97652f9f5af90738b3
Reviewed-by: Andy Shaw
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
src/printsupport/kernel/qprintengine_win.cpp
tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp