diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2017-12-06 10:19:13 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals.cid@kdab.com> | 2017-12-18 15:23:29 +0000 |
commit | ad77a2447e8cc828dadd268c72428556e3cc8a84 (patch) | |
tree | cc7d29e7f9ab3b69e30022c1c1acd3b735695dad /src/plugins | |
parent | c61810b6f5f645c79adabea35304ac76946c50d0 (diff) |
CUPS: Use default cups job-priority instead of 50
This also reads the job-priority from lpoptions if set there for the particular printer
Change-Id: I75d983c377d2135a0b0d3e028829a7384a5e1897
Reviewed-by: Laurent Montel <laurent.montel@kdab.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/printsupport/cups/qppdprintdevice.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/printsupport/cups/qppdprintdevice.cpp b/src/plugins/printsupport/cups/qppdprintdevice.cpp index 021d040ad0..56976a6723 100644 --- a/src/plugins/printsupport/cups/qppdprintdevice.cpp +++ b/src/plugins/printsupport/cups/qppdprintdevice.cpp @@ -427,6 +427,8 @@ QVariant QPpdPrintDevice::property(QPrintDevice::PrintDevicePropertyKey key) con { if (key == PDPK_PpdFile) return QVariant::fromValue<ppd_file_t *>(m_ppd); + else if (key == PDPK_CupsJobPriority) + return printerOption(QStringLiteral("job-priority")); return QVariant(); } |