summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/gui/kernel/qplatformintegration_qpa.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/kernel/qplatformintegration_qpa.cpp b/src/gui/kernel/qplatformintegration_qpa.cpp
index 12b8760ffd..7dadf70879 100644
--- a/src/gui/kernel/qplatformintegration_qpa.cpp
+++ b/src/gui/kernel/qplatformintegration_qpa.cpp
@@ -237,8 +237,10 @@ bool QPlatformIntegration::hasCapability(Capability cap) const
QPlatformPrinterSupport *QPlatformIntegration::printerSupport() const
{
static QPlatformPrinterSupport *ps = 0;
+#ifndef QT_NO_PRINTER
if (!ps)
ps = new QPlatformPrinterSupport;
+#endif
return ps;
}