Ignore:
Timestamp:
Feb 17, 2010, 8:53:20 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Implemented support for printing through CUPS on OS/2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/painting/qprinter.cpp

    r561 r573  
    4848#include <qapplication.h>
    4949#include <qfileinfo.h>
    50 #if !defined(QT_NO_CUPS) && !defined(QT_NO_LIBRARY)
     50#if !defined(QT_NO_CUPS) && )
    5151#include "private/qcups_p.h"
    5252#endif
     
    184184    QPrinter::OutputFormat realOutputFormat = outputFormat;
    185185#if !defined (QTOPIA_PRINTENGINE)
    186 #if defined (Q_OS_UNIX) && ! defined (Q_WS_MAC)
     186#if )
    187187    if(outputFormat == QPrinter::NativeFormat) {
    188188        realOutputFormat = QPrinter::PostScriptFormat;
     
    205205        paintEngine = qwsEngine;
    206206        printEngine = qwsEngine;
    207 #elif defined (Q_OS_UNIX)
     207#elif defined (Q_OS_UNIX)
    208208        Q_ASSERT(false);
    209209#endif
     
    665665    d->realPaintEngine = 0;
    666666
    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)
    668670    if (QCUPSSupport::cupsVersion() >= 10200 && QCUPSSupport().currentPPD()) {
    669671        setOutputFormat(QPrinter::PdfFormat);
     
    825827    if(d->use_default_engine
    826828        && d->outputFormat == QPrinter::NativeFormat) {
     829
     830
     831
    827832        if (QCUPSSupport::cupsVersion() >= 10200
    828833            && QCUPSSupport::printerHasPPD(name.toLocal8Bit().constData()))
    829834            setOutputFormat(QPrinter::PdfFormat);
    830835        else
     836
    831837            setOutputFormat(QPrinter::PostScriptFormat);
    832838        d->outputFormat = QPrinter::NativeFormat;
Note: See TracChangeset for help on using the changeset viewer.