summaryrefslogtreecommitdiffstats
path: root/src/plugins/printsupport
diff options
context:
space:
mode:
authorSergei Kulik <sergey@neatvideo.com>2015-03-10 15:12:00 +1100
committerTimur Pocheptsov <Timur.Pocheptsov@digia.com>2015-03-20 07:05:03 +0000
commit97edc8ede23f0e81c7b58f0613c4f67def1e8a3c (patch)
treecb69468767b7f1a5c869fda800678f4a7a61af9b /src/plugins/printsupport
parent282ba9a1802526ecdfbec512ac452e767608f8e3 (diff)
Fixed compilation on Mac OS X (qt namespace and preprocessor issues))
Configured with -qtnamespace <...> -no-opengl -D QT_NO_PRINTER Change-Id: I1c959a89afda08d29a854f21e6e51732d136753c Reviewed-by: Timur Pocheptsov <Timur.Pocheptsov@digia.com> Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/plugins/printsupport')
-rw-r--r--src/plugins/printsupport/cocoa/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/printsupport/cocoa/main.cpp b/src/plugins/printsupport/cocoa/main.cpp
index 57d768770a..d0925bbc34 100644
--- a/src/plugins/printsupport/cocoa/main.cpp
+++ b/src/plugins/printsupport/cocoa/main.cpp
@@ -38,6 +38,8 @@
QT_BEGIN_NAMESPACE
+#ifndef QT_NO_PRINTER
+
class QCocoaPrinterSupportPlugin : public QPlatformPrinterSupportPlugin
{
Q_OBJECT
@@ -65,6 +67,8 @@ QPlatformPrinterSupport *QCocoaPrinterSupportPlugin::create(const QString &key)
return platformPrinterSupport;
}
+#endif
+
QT_END_NAMESPACE
#include "main.moc"