From 27c33a8f7a9469fd8b55de62b11e0b6b868636c5 Mon Sep 17 00:00:00 2001 From: John Layt Date: Fri, 17 Jan 2014 16:16:31 +0100 Subject: QPrintEngne - Fix PPK_Creator Add support to the Mac and Windows print engines to preserve the creator name when switching between native and pdf format. Change-Id: Ie036af3140f24d8e34aa886f091384f93aa0157b Reviewed-by: Lars Knoll --- tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp') diff --git a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp index 054800d829..d3ccb229fc 100644 --- a/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp +++ b/tests/auto/printsupport/kernel/qprinter/tst_qprinter.cpp @@ -1067,8 +1067,8 @@ void tst_QPrinter::creator() // creator() / setCreator() / PPK_Creator // PdfFormat: Supported, default QString() // NativeFormat, Cups: Supported, default QString() - // NativeFormat, Win: Unsupported, always QString() - // NativeFormat, Mac: Unsupported, always QString() + // NativeFormat, Win: Supported, default QString() + // NativeFormat, Mac: Supported, default QString() QPrinter pdf; pdf.setOutputFormat(QPrinter::PdfFormat); @@ -1084,9 +1084,6 @@ void tst_QPrinter::creator() // Test set/get QString expected = QStringLiteral("Test Creator"); native.setCreator(expected); -#if defined Q_OS_MAC || defined Q_OS_WIN - expected.clear(); -#endif // Q_OS_MAC || Q_OS_WIN QCOMPARE(native.creator(), expected); // Test value preservation -- cgit v1.2.3