summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlli Werwolff <qt-info@nokia.com>2011-06-08 09:35:38 +0200
committerOlli Werwolff <qt-info@nokia.com>2011-06-08 13:57:25 +0200
commit9a3e1dba27fda847d3a2b0675d7066ba6bed8d1c (patch)
tree581e7be1a5a05b6d6a3daf79d22038e39f693686 /src
parentf2ff9036ae072b638742a1166b7f424d949c597d (diff)
Fixed compilation with QT_NO_PRINTER
Reviewed-by: Samuel Reviewed-by: Lars Knoll
Diffstat (limited to 'src')
-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;
}