Fixed compilation with QT_NO_PRINTER

Reviewed-by: Samuel
Reviewed-by: Lars Knoll
bb10
Olli Werwolff 2011-06-08 09:35:38 +02:00
parent f2ff9036ae
commit 9a3e1dba27
1 changed files with 2 additions and 0 deletions

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