From d48d83a1ac6761ed8481aba8875a6c7d99ae3f3a Mon Sep 17 00:00:00 2001 From: John Layt Date: Sun, 29 Jul 2012 17:41:08 +0100 Subject: [PATCH] SIC QPrintSupport: Remove unused PPK_SuppressSystemPrintStatus Print Engine key PPK_SuppressSystemPrintStatus was added in Qt4.1 for Cocoa dialog to suppress the progress dialog. In Qt5 all cocoa code has been removed and this key is now unused. Change-Id: I3a91e9651e16f81611a9a736163f76acf9f20096 Reviewed-by: Eskil Abrahamsen Blomfeldt --- dist/changes-5.0.0 | 2 ++ src/plugins/platforms/cocoa/qprintengine_mac.mm | 2 -- src/printsupport/kernel/qprintengine.h | 1 - src/printsupport/kernel/qprinter.cpp | 4 ---- 4 files changed, 2 insertions(+), 7 deletions(-) diff --git a/dist/changes-5.0.0 b/dist/changes-5.0.0 index a444cc31ed9..922e166723f 100644 --- a/dist/changes-5.0.0 +++ b/dist/changes-5.0.0 @@ -325,6 +325,8 @@ information about a particular change. - QThread::terminated() has been removed, since its emission cannot be guaranteed. +- QPrintEngine - Removed the PPK_SuppressSystemPrintStatus key as no longer used. + **************************************************************************** * General * **************************************************************************** diff --git a/src/plugins/platforms/cocoa/qprintengine_mac.mm b/src/plugins/platforms/cocoa/qprintengine_mac.mm index 94c89ad8db4..d497c561262 100644 --- a/src/plugins/platforms/cocoa/qprintengine_mac.mm +++ b/src/plugins/platforms/cocoa/qprintengine_mac.mm @@ -642,8 +642,6 @@ void QMacPrintEngine::setProperty(PrintEnginePropertyKey key, const QVariant &va d->state = QPrinter::Idle; } break; } - case PPK_SuppressSystemPrintStatus: - break; case PPK_CustomPaperSize: { PMOrientation orientation; diff --git a/src/printsupport/kernel/qprintengine.h b/src/printsupport/kernel/qprintengine.h index d81d5bd172c..ab4483e3c1b 100644 --- a/src/printsupport/kernel/qprintengine.h +++ b/src/printsupport/kernel/qprintengine.h @@ -78,7 +78,6 @@ public: PPK_WindowsPageSize, PPK_FontEmbedding, - PPK_SuppressSystemPrintStatus, PPK_Duplex, diff --git a/src/printsupport/kernel/qprinter.cpp b/src/printsupport/kernel/qprinter.cpp index d665314ed84..bc8ce5f1cb1 100644 --- a/src/printsupport/kernel/qprinter.cpp +++ b/src/printsupport/kernel/qprinter.cpp @@ -1974,10 +1974,6 @@ QPrinter::PrintRange QPrinter::printRange() const \value PPK_SupportedResolutions A list of integer QVariants describing the set of supported resolutions that the printer has. - \value PPK_SuppressSystemPrintStatus Suppress the built-in dialog for showing - printing progress. As of 4.1 this only has effect on Mac OS X where, by default, - a status dialog is shown. - \value PPK_WindowsPageSize An integer specifying a DM_PAPER entry on Windows.