diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2017-12-06 13:00:30 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals.cid@kdab.com> | 2017-12-19 08:08:13 +0000 |
commit | 414a703036db6d5b4b1f48b85d8c3b4702f869ec (patch) | |
tree | a1fb7c1a9d61158c122c59cc0f9dbb91af06c1d3 /src/plugins | |
parent | 2831fa76655c614ed3df0816401514950e79b5e6 (diff) |
CUPS: Use printer job-hold-until as default instead of the nohold
This also reads the job-hold-until from lpoptions if set there for the particular printer
Change-Id: Ic60fef675ab9f4760cd99ee9ac417b0478459681
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 0fd6f5f096..14c14facae 100644 --- a/src/plugins/printsupport/cups/qppdprintdevice.cpp +++ b/src/plugins/printsupport/cups/qppdprintdevice.cpp @@ -433,6 +433,8 @@ QVariant QPpdPrintDevice::property(QPrintDevice::PrintDevicePropertyKey key) con return printerOption(QStringLiteral("job-sheets")); else if (key == PDPK_CupsJobBilling) return printerOption(QStringLiteral("job-billing")); + else if (key == PDPK_CupsJobHoldUntil) + return printerOption(QStringLiteral("job-hold-until")); return QVariant(); } |