Changeset 573 for trunk/src/gui/painting/qprinter.cpp
- Timestamp:
- Feb 17, 2010, 8:53:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/painting/qprinter.cpp
r561 r573 48 48 #include <qapplication.h> 49 49 #include <qfileinfo.h> 50 #if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY)50 #if !defined(QT_NO_CUPS) && ) 51 51 #include "private/qcups_p.h" 52 52 #endif … … 184 184 QPrinter::OutputFormat realOutputFormat = outputFormat; 185 185 #if !defined (QTOPIA_PRINTENGINE) 186 #if defined (Q_OS_UNIX) && ! defined (Q_WS_MAC)186 #if ) 187 187 if(outputFormat == QPrinter::NativeFormat) { 188 188 realOutputFormat = QPrinter::PostScriptFormat; … … 205 205 paintEngine = qwsEngine; 206 206 printEngine = qwsEngine; 207 #elif defined (Q_OS_UNIX) 207 #elif defined (Q_OS_UNIX) 208 208 Q_ASSERT(false); 209 209 #endif … … 665 665 d->realPaintEngine = 0; 666 666 667 #if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY) 667 // Note: On OS/2, sending PDF data doesn't yet work with the current eCUPS 668 // (which is version 1.3.11 of CUPS), so don't force the PDF format there 669 #if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY) && !defined(Q_WS_PM) 668 670 if (QCUPSSupport::cupsVersion() >= 10200 && QCUPSSupport().currentPPD()) { 669 671 setOutputFormat(QPrinter::PdfFormat); … … 825 827 if(d->use_default_engine 826 828 && d->outputFormat == QPrinter::NativeFormat) { 829 830 831 827 832 if (QCUPSSupport::cupsVersion() >= 10200 828 833 && QCUPSSupport::printerHasPPD(name.toLocal8Bit().constData())) 829 834 setOutputFormat(QPrinter::PdfFormat); 830 835 else 836 831 837 setOutputFormat(QPrinter::PostScriptFormat); 832 838 d->outputFormat = QPrinter::NativeFormat;
Note:
See TracChangeset
for help on using the changeset viewer.