diff options
author | John Layt <jlayt@kde.org> | 2012-04-29 14:13:10 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-07 20:26:43 +0200 |
commit | 80f7a388906f94f58bf765a32b9abbb16f967db2 (patch) | |
tree | ba858ff71ee97d479ea2543a9e3dfd634049f86e /src/printsupport/kernel/qprinter.cpp | |
parent | 36547f4eff44361f7a6acd0cff107c0e47561f93 (diff) |
QtPrintSupport: Remove remaining LPR specific code
CUPS is the only supported print system on UNIX, LPR/PS support has
already been dropped but some LPR specific code still remains.
* Move qt_getCupsPrinterPaperSizes from qprinterinfo_unix to
QCUPSSupport
* Remove qprinterinfo_unix as no longer used
* Remove LPR related code from QPdfPrintEngine
* Remove all QT_NO_LPR uses
* Remove most QT_NO_CUPS uses, use QT_NO_PRINTER where necessary
Some QT_NO_CUPS uses remain in QPdfPrintEngine, these will be removed
in a following change implementing a CUPS plugin.
Change-Id: I439b6fad9cf88c3d24aa48e49475f49ad310dbad
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/printsupport/kernel/qprinter.cpp')
-rw-r--r-- | src/printsupport/kernel/qprinter.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/printsupport/kernel/qprinter.cpp b/src/printsupport/kernel/qprinter.cpp index 4929b3308e..a0033aa52a 100644 --- a/src/printsupport/kernel/qprinter.cpp +++ b/src/printsupport/kernel/qprinter.cpp @@ -41,17 +41,18 @@ #include "qprinter_p.h" #include "qprinter.h" + +#ifndef QT_NO_PRINTER + #include "qprintengine.h" #include "qprinterinfo.h" #include "qlist.h" #include <qcoreapplication.h> #include <qfileinfo.h> -#if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY) +#if !defined(QT_NO_CUPS) #include "private/qcups_p.h" #endif -#ifndef QT_NO_PRINTER - #include <qpa/qplatformprintplugin.h> #include <qpa/qplatformprintersupport.h> #include <private/qpagedpaintdevice_p.h> @@ -236,7 +237,7 @@ void QPrinterPrivate::addToManualSetList(QPrintEngine::PrintEnginePropertyKey ke When printing directly to a printer on Windows or Mac OS X, QPrinter uses the built-in printer drivers. On X11, QPrinter uses the - \l{Common Unix Printing System (CUPS)} or the standard Unix \l lpr utility + \l{Common Unix Printing System (CUPS)} to send PDF output to the printer. As an alternative, the printProgram() function can be used to specify the command or utility to use instead of the system default. @@ -554,7 +555,7 @@ void QPrinterPrivate::init(QPrinter::PrinterMode mode) realPrintEngine = 0; realPaintEngine = 0; -#if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY) +#if !defined(QT_NO_CUPS) if (QCUPSSupport::cupsVersion() >= 10200 && QCUPSSupport().currentPPD()) { q_func()->setOutputFormat(QPrinter::PdfFormat); outputFormat = QPrinter::NativeFormat; |