diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-05-30 14:57:17 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2022-05-31 22:40:29 +0200 |
commit | e13aa3d6d5ad231afb49c428b4f75e3a62f84eff (patch) | |
tree | d78e50e6ac7ba38cf9dc24572ff95fc4004075be /tests/auto | |
parent | 16b529138869b24425cf96c6516b3eb1e63c0b85 (diff) |
Rename QPdfDocument::pageSize() to QPdfDocument::pagePointSize()
It is in fact the size in points (1/72 of an inch), so we might as well
be consistent about the naming between QML and C++ APIs.
Change-Id: I8f8b05eeecc635a4d105558959834ae0e15add81
Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp index 468ca775b..b44edc703 100644 --- a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp +++ b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp @@ -124,7 +124,7 @@ void tst_QPdfDocument::pageCount() QCOMPARE(pageCountChangedSpy.count(), 1); QCOMPARE(pageCountChangedSpy[0][0].toInt(), doc.pageCount()); - QCOMPARE(doc.pageSize(0).toSize(), tempPdf.pageLayout.fullRectPoints().size()); + QCOMPARE(doc.pagePointSize(0).toSize(), tempPdf.pageLayout.fullRectPoints().size()); } void tst_QPdfDocument::loadFromIODevice() |