Fixed compilation with QT_NO_PRINTER
Reviewed-by: Samuel Reviewed-by: Lars Knoll
This commit is contained in:
parent
f2ff9036ae
commit
9a3e1dba27
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user