diff options
author | Olli Werwolff <qt-info@nokia.com> | 2011-06-08 09:35:38 +0200 |
---|---|---|
committer | Olli Werwolff <qt-info@nokia.com> | 2011-06-08 13:57:25 +0200 |
commit | 9a3e1dba27fda847d3a2b0675d7066ba6bed8d1c (patch) | |
tree | 581e7be1a5a05b6d6a3daf79d22038e39f693686 /src/gui | |
parent | f2ff9036ae072b638742a1166b7f424d949c597d (diff) |
Fixed compilation with QT_NO_PRINTER
Reviewed-by: Samuel
Reviewed-by: Lars Knoll
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qplatformintegration_qpa.cpp | 2 |
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; } |