diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2017-12-06 11:28:55 +0100 |
---|---|---|
committer | Albert Astals Cid <albert.astals.cid@kdab.com> | 2017-12-18 15:23:43 +0000 |
commit | 83538a360e246ac2242977015e4a374a9f0e21b8 (patch) | |
tree | c598f921b0ce490d7d54983ba2d085783888f335 /src/plugins | |
parent | 33f08a68c10df117c881a33cbf7421d172bbdd9d (diff) |
CUPS: Use printer job-sheets as default instead of none,none
This also reads the job-sheets from lpoptions if set there for the particular printer
Change-Id: I35aff103261ef58492779071d866e8a15ac78607
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 56976a6723..e11d301bd8 100644 --- a/src/plugins/printsupport/cups/qppdprintdevice.cpp +++ b/src/plugins/printsupport/cups/qppdprintdevice.cpp @@ -429,6 +429,8 @@ QVariant QPpdPrintDevice::property(QPrintDevice::PrintDevicePropertyKey key) con return QVariant::fromValue<ppd_file_t *>(m_ppd); else if (key == PDPK_CupsJobPriority) return printerOption(QStringLiteral("job-priority")); + else if (key == PDPK_CupsJobSheets) + return printerOption(QStringLiteral("job-sheets")); return QVariant(); } |