Changeset 578 for trunk/src


Ignore:
Timestamp:
Feb 18, 2010, 3:27:14 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

configure.cmd: Added QT_NO_LPR (and made Qt sources additionally use it in a couple of places) since OS/2 doesn't support LPR-like printing for now.

Location:
trunk/src/gui
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/dialogs/qprintdialog_unix.cpp

    r575 r578  
    685685    } else {
    686686#endif
    687 #ifndef Q_WS_PM
     687#ifndef QT_NO_LPR
    688688        currentPrinterIndex = qt_getLprPrinters(lprPrinters);
    689689        // populating printer combo
  • trunk/src/gui/painting/qpdf.cpp

    r574 r578  
    16931693            pr = printerName;
    16941694        int fds[2];
    1695 #ifdef Q_WS_PM
    1696         if (::pipe(fds) != 0) {
    1697 #else
    16981695        if (qt_safe_pipe(fds) != 0) {
    1699 #endif
    17001696            qWarning("QPdfPrinter: Could not open pipe to print");
    17011697            return false;
     
    17181714                ::_exit(0);
    17191715            }
    1720 #ifdef Q_WS_PM
    1721             ::dup2(fds[0], 0);
    1722 #else
    17231716            qt_safe_dup2(fds[0], 0, 0);
    1724 #endif
    17251717
    17261718            closeAllOpenFds();
     
    17991791        QT_CLOSE(fds[0]);
    18001792        fd = fds[1];
    1801 #ifdef Q_WS_PM
    1802         (void)::waitpid(pid, 0, 0);
    1803 #else
    18041793        (void)qt_safe_waitpid(pid, 0, 0);
    1805 #endif
     1794
    18061795        if (fd < 0)
    18071796            return false;
  • trunk/src/gui/painting/qprinterinfo_unix.cpp

    r561 r578  
    727727}
    728728
     729#ifndef QT_NO_LPR
    729730int qt_getLprPrinters(QList<QPrinterDescription>& printers)
    730731{
     
    819820    return best;
    820821}
     822#endif
    821823
    822824/////////////////////////////////////////////////////////////////////////////
  • trunk/src/gui/painting/qprinterinfo_unix_p.h

    r561 r578  
    117117void qt_parseSpoolInterface(QList<QPrinterDescription> *printers);
    118118void qt_parseQconfig(QList<QPrinterDescription> *printers);
     119#ifndef QT_NO_LPR
    119120int qt_getLprPrinters(QList<QPrinterDescription>& printers);
     121#endif
    120122
    121123#endif // QT_NO_PRINTER
Note: See TracChangeset for help on using the changeset viewer.