Fixed compilation with QT_NO_PRINTER

Reviewed-by: Samuel
Reviewed-by: Lars Knoll
This commit is contained in:
Olli Werwolff 2011-06-08 09:35:38 +02:00
parent f2ff9036ae
commit 9a3e1dba27

View File

@ -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;
}