diff options
author | Lars Knoll <lars.knoll@qt.io> | 2016-09-08 15:04:53 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2016-09-15 08:24:04 +0000 |
commit | b22471edf9ff666e87b12398460dfd6e761bc24c (patch) | |
tree | da66a63dea38c7b6583d46ee5677023a9a0ffefa /src/printsupport/kernel/qplatformprintplugin.cpp | |
parent | b754b2815d342334f335816b901c051940954942 (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.cpp')
-rw-r--r-- | src/printsupport/kernel/qplatformprintplugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/printsupport/kernel/qplatformprintplugin.cpp b/src/printsupport/kernel/qplatformprintplugin.cpp index b50f43056b..9bc4b61829 100644 --- a/src/printsupport/kernel/qplatformprintplugin.cpp +++ b/src/printsupport/kernel/qplatformprintplugin.cpp @@ -43,6 +43,8 @@ #include "private/qfactoryloader_p.h" #include <qcoreapplication.h> +#ifndef QT_NO_PRINTER + QT_BEGIN_NAMESPACE Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, @@ -86,3 +88,5 @@ QPlatformPrinterSupport *QPlatformPrinterSupportPlugin::get() } QT_END_NAMESPACE + +#endif |