Remove #ifdef Q_WS_MAC code from QPrinter
We have a QPlatformPrinterSupportPlugin on Mac OS X to return the QPrintEngine/QPaintEngine, no need to keep this code. Change-Id: Ie24dcfd157810ede69790fc7b27c12e24766efce Reviewed-by: Morten Johan Sørvig <morten.sorvig@nokia.com>
This commit is contained in:
parent
82fd18fe36
commit
79e64ede69
@ -58,8 +58,6 @@
|
||||
|
||||
#if defined (Q_WS_WIN)
|
||||
#include <private/qprintengine_win_p.h>
|
||||
#elif defined (Q_WS_MAC)
|
||||
#include <private/qprintengine_mac_p.h>
|
||||
#elif defined (QTOPIA_PRINTENGINE)
|
||||
#include <private/qprintengine_qws_p.h>
|
||||
#endif
|
||||
@ -176,11 +174,6 @@ void QPrinterPrivate::createDefaultEngines()
|
||||
paintEngine = pdfEngine;
|
||||
printEngine = pdfEngine;
|
||||
}
|
||||
#if defined (Q_WS_MAC)
|
||||
QMacPrintEngine *macEngine = new QMacPrintEngine(printerMode);
|
||||
paintEngine = macEngine;
|
||||
printEngine = macEngine;
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
case QPrinter::PdfFormat: {
|
||||
|
Loading…
Reference in New Issue
Block a user