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:
Sergio Ahumada 2012-10-04 11:58:22 +02:00 committed by The Qt Project
parent 95e548eeaa
commit 3374f06af2
3 changed files with 11 additions and 0 deletions

View File

@ -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"

View File

@ -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

View File

@ -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