QtPrinterSupport: Fix compilation with QT_NO_PRINTER
This seems to be a left over of 80f7a38890
Task-number: QTBUG-27177
Change-Id: I72a285ed1d64f756d585a86d8401ee23eb4a1ce1
Reviewed-by: Sérgio Martins <sergio.martins.qnx@kdab.com>
Reviewed-by: Indrajit Tapadar <indrajit.tapadar@digia.com>
Reviewed-by: Holger Ihrig <holger.ihrig@digia.com>
Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com>
This commit is contained in:
parent
95e548eeaa
commit
3374f06af2
@ -45,6 +45,8 @@
|
||||
#include <qpa/qplatformprintplugin.h>
|
||||
#include <QtCore/QStringList>
|
||||
|
||||
#ifndef QT_NO_PRINTER
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
class QCupsPrinterSupportPlugin : public QPlatformPrinterSupportPlugin
|
||||
@ -71,4 +73,6 @@ QPlatformPrinterSupport *QCupsPrinterSupportPlugin::create(const QString &key)
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_PRINTER
|
||||
|
||||
#include "main.moc"
|
||||
|
@ -41,6 +41,8 @@
|
||||
|
||||
#include "qcupsprintersupport_p.h"
|
||||
|
||||
#ifndef QT_NO_PRINTER
|
||||
|
||||
#include "qcupsprintengine_p.h"
|
||||
#include <private/qprinterinfo_p.h>
|
||||
|
||||
@ -144,3 +146,5 @@ PrinterOptions QCupsPrinterSupport::printerOptions(const QPrinterInfo &printer)
|
||||
}
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // QT_NO_PRINTER
|
||||
|
@ -42,6 +42,8 @@
|
||||
#ifndef QCUPSPRINTERSUPPORT_H
|
||||
#define QCUPSPRINTERSUPPORT_H
|
||||
|
||||
#ifndef QT_NO_PRINTER
|
||||
|
||||
#include <qpa/qplatformprintersupport.h>
|
||||
|
||||
#include <QtCore/qlibrary.h>
|
||||
@ -85,4 +87,5 @@ private:
|
||||
QT_END_NAMESPACE
|
||||
QT_END_HEADER
|
||||
|
||||
#endif // QT_NO_PRINTER
|
||||
#endif // QCUPSPRINTERSUPPORT_H
|
||||
|
Loading…
Reference in New Issue
Block a user