path: root/src/plugins/printsupport
diff options
authorJohn Layt <>2013-11-29 19:13:49 +0100
committerThe Qt Project <>2014-02-05 19:33:54 +0100
commit0ee72b09fd99b756a85de78bafb03c7dee163ef5 (patch)
treee252fd5f7af2e21aea54eaa2611f28faee3d2bbb /src/plugins/printsupport
parent27473f19bb26b5b4434689c663d483e48b43fdef (diff)
QPrintEngine - Fix PPK_CollateCopies
Mac supports Collate Copies using native api, so add support. Note this is mostly only useful for setting the print dialog default, as Mac supports server-side multiple copies so the app will never need to collate the copies itself. Change PDF and Windows to default to collate true to match Mac as this is the behavior users expect. Task-number: QTBUG-27724 Task-number: QTBUG-35251 Task-number: QTBUG-22144 Change-Id: Ia43dbc260b3a71aa5b267cca54c168ffbea794fc Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/plugins/printsupport')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/printsupport/cups/qcupsprintengine.cpp b/src/plugins/printsupport/cups/qcupsprintengine.cpp
index 1c86420cb2..2fecdc00e9 100644
--- a/src/plugins/printsupport/cups/qcupsprintengine.cpp
+++ b/src/plugins/printsupport/cups/qcupsprintengine.cpp
@@ -221,7 +221,7 @@ void QCupsPrintEnginePrivate::closePrintDevice()
if (copies > 1)
options.append(QPair<QByteArray, QByteArray>("copies", QString::number(copies).toLocal8Bit()));
- if (collate)
+ if (copies > 1 && collate)
options.append(QPair<QByteArray, QByteArray>("Collate", "True"));
switch (duplex) {