summaryrefslogtreecommitdiffstats
path: root/src/printsupport/kernel/qplatformprintplugin.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2016-09-08 15:04:53 +0200
committerLars Knoll <lars.knoll@qt.io>2016-09-15 08:24:04 +0000
commitb22471edf9ff666e87b12398460dfd6e761bc24c (patch)
treeda66a63dea38c7b6583d46ee5677023a9a0ffefa /src/printsupport/kernel/qplatformprintplugin.h
parentb754b2815d342334f335816b901c051940954942 (diff)
Make things compile with the printer feature disabled
Always include qtprintsupportglobal.h before checking the ifdef, and add ifdef's where they where missing. Change-Id: I535dce33b26955fb0196ea05d54be41fe93e9151 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Diffstat (limited to 'src/printsupport/kernel/qplatformprintplugin.h')
-rw-r--r--src/printsupport/kernel/qplatformprintplugin.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/printsupport/kernel/qplatformprintplugin.h b/src/printsupport/kernel/qplatformprintplugin.h
index 3e909519c2..30e8f7938a 100644
--- a/src/printsupport/kernel/qplatformprintplugin.h
+++ b/src/printsupport/kernel/qplatformprintplugin.h
@@ -53,6 +53,8 @@
#include <QtCore/qplugin.h>
#include <QtCore/qfactoryinterface.h>
+#ifndef QT_NO_PRINTER
+
QT_BEGIN_NAMESPACE
@@ -74,4 +76,6 @@ public:
QT_END_NAMESPACE
+#endif
+
#endif // QPLATFORMPRINTPLUGIN_H