mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-02 14:14:10 +00:00
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:
parent
a704fbce94
commit
14c936ea1b
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue