From 9a3e1dba27fda847d3a2b0675d7066ba6bed8d1c Mon Sep 17 00:00:00 2001 From: Olli Werwolff Date: Wed, 8 Jun 2011 09:35:38 +0200 Subject: Fixed compilation with QT_NO_PRINTER Reviewed-by: Samuel Reviewed-by: Lars Knoll --- src/gui/kernel/qplatformintegration_qpa.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/kernel/qplatformintegration_qpa.cpp') 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; } -- cgit v1.2.3