Fix for CUPS printing

Okular was checking for Q_WS_X11 definition (which is not available since Qt 5) to detect CUPS, so detection always fails making CUPS parameters ignored.

REVIEW: 127036
This commit is contained in:
Krzysztof Pyrkosz 2016-02-16 01:26:48 +01:00 committed by Albert Astals Cid
parent a704fbce94
commit 14c936ea1b

View file

@ -233,7 +233,7 @@ bool FilePrinter::pdf2psAvailable()
bool FilePrinter::cupsAvailable()
{
#ifdef Q_WS_X11
#if defined(Q_OS_UNIX) && !defined(Q_OS_OSX)
// Ideally we would have access to the private Qt method
// QCUPSSupport::cupsAvailable() to do this as it is very complex routine.
// However, if CUPS is available then QPrinter::numCopies() will always return 1