diff --git a/src/plugins/printsupport/cups/qppdprintdevice.cpp b/src/plugins/printsupport/cups/qppdprintdevice.cpp index 7503e70a4c..6a5e7504e5 100644 --- a/src/plugins/printsupport/cups/qppdprintdevice.cpp +++ b/src/plugins/printsupport/cups/qppdprintdevice.cpp @@ -52,6 +52,10 @@ QT_BEGIN_NAMESPACE +// avoid all the warnings about using deprecated API from CUPS (as there is no real replacement) +QT_WARNING_PUSH +QT_WARNING_DISABLE_DEPRECATED + QPpdPrintDevice::QPpdPrintDevice(const QString &id) : QPlatformPrintDevice(id), m_cupsDest(0), @@ -508,4 +512,6 @@ cups_ptype_e QPpdPrintDevice::printerTypeFlags() const return static_cast(printerOption("printer-type").toUInt()); } +QT_WARNING_POP + QT_END_NAMESPACE