summaryrefslogtreecommitdiffstats
path: root/tests/auto/printsupport
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-09-13 22:39:04 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-23 23:17:35 +0200
commitbe8999038ff4afdfca8fa693a7e0e3dbaae54c97 (patch)
treec1fa275760414d7ee507b6894cc364d9ca7ffe0f /tests/auto/printsupport
parentddefc7627d70c46dadfa934dd3754a2aff0dbfea (diff)
When calling setPageSizeMM then the size needs to be passed as MM
This simplifies the code a bit and ensures that it is respecting what the relevant function expects the size to be as. Change-Id: Iec88fab84c27a33d6f1a9e9413ea6beb0a39c68d Reviewed-by: John Layt <jlayt@kde.org>
Diffstat (limited to 'tests/auto/printsupport')
-rw-r--r--tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp
index 0261224543..7251cca528 100644
--- a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp
+++ b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp
@@ -590,6 +590,7 @@ void tst_QPrinter::setGetPaperSize()
QSizeF size(500, 10);
p.setPaperSize(size, QPrinter::Millimeter);
QCOMPARE(p.paperSize(QPrinter::Millimeter), size);
+ QCOMPARE(p.pageSizeMM(), size);
QSizeF ptSize = p.paperSize(QPrinter::Point);
//qDebug() << ptSize;
QVERIFY(qAbs(ptSize.width() - size.width() * (72/25.4)) < 1E-4);