diff options
author | Michal Klocek <michal.klocek@qt.io> | 2022-08-24 09:21:03 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-09-16 00:28:53 +0000 |
commit | 6663dd1ac0f0ba0598315cfe75920c74f7c08454 (patch) | |
tree | 574849accf213f4d1d2f514cff22961476ffd590 /tests | |
parent | 498016cb650b14a36d1392ba1ab421c574710315 (diff) |
Fix locally falling tst_qpdfdocument on qemu
Use name for temporary file otherwise is can not be
opened on qemu.
Task-number: QTBUG-105342
Change-Id: I7f9ed244c32b866ead6832ed942e2293be24811b
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
(cherry picked from commit 30f2d86426c674d0cba9ca88dbf7e587c57e72d3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'tests')
-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 a481ee57c..975708f65 100644 --- a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp +++ b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp @@ -54,7 +54,7 @@ struct TemporaryPdf: public QTemporaryFile }; -TemporaryPdf::TemporaryPdf() +TemporaryPdf::TemporaryPdf():QTemporaryFile(QStringLiteral("qpdfdocument")) { open(); pageLayout = QPageLayout(QPageSize(QPageSize::A4), QPageLayout::Portrait, QMarginsF()); |