diff options
author | Titta Heikkala <titta.heikkala@digia.com> | 2012-09-06 12:58:18 +0300 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-15 22:01:47 +0200 |
commit | bdcece7d46e1c9ca9717dfc10e699f8dfbd2286e (patch) | |
tree | bc1ec411aee1ee4c37da1585e483b6b0d488faab /tests/auto/printsupport/kernel | |
parent | 2097b9193fb358602f7a99cd8bad7af52c93003d (diff) |
Revert a change to printer orientation
Reverting change: Ia6bc9ae14d79a646e61bfc97652f9f5af90738b3
The previous change does not set the printer correctly. It looks
based on the tests that the correct printer is set, but in reality
the default printer is used (even though printerName() is returning
the printer set).
Updated taskQTBUG4497_reusePrinterOnDifferentFiles() test case
so that it generates PDF instead of PS. Testing the binary output
can't be guaranteed to work in this case.
Change-Id: Iee111f2c2dec84f86344a38816c21e191f5373ea
Reviewed-by: Andy Shaw <andy.shaw@digia.com>
Diffstat (limited to 'tests/auto/printsupport/kernel')
-rw-r--r-- | tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp index 7f872a4ffb..0f7c7f7a84 100644 --- a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp +++ b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp @@ -965,28 +965,28 @@ static void printPage(QPainter *painter) void tst_QPrinter::taskQTBUG4497_reusePrinterOnDifferentFiles() { - TempFileCleanup tmpFile1("out1.ps"); - TempFileCleanup tmpFile2("out2.ps"); + TempFileCleanup tmpFile1("out1.pdf"); + TempFileCleanup tmpFile2("out2.pdf"); QPrinter printer; { - printer.setOutputFileName("out1.ps"); + printer.setOutputFileName("out1.pdf"); QPainter painter(&printer); printPage(&painter); } { - printer.setOutputFileName("out2.ps"); + printer.setOutputFileName("out2.pdf"); QPainter painter(&printer); printPage(&painter); } - QFile file1("out1.ps"); + QFile file1("out1.pdf"); QVERIFY(file1.open(QIODevice::ReadOnly)); - QFile file2("out2.ps"); + QFile file2("out2.pdf"); QVERIFY(file2.open(QIODevice::ReadOnly)); while (!file1.atEnd() && !file2.atEnd()) { |