diff options
author | Albert Astals Cid <albert.astals.cid@kdab.com> | 2018-10-05 17:35:27 +0200 |
---|---|---|
committer | Albert Astals Cid <albert.astals.cid@kdab.com> | 2018-10-12 09:19:16 +0000 |
commit | b6427ded65cd8ec031547ae0aeaa7a31f3c6a4b1 (patch) | |
tree | a2d5583ff4592804f84b37095bf4d30bb18f023f /src/printsupport/kernel/qprinterinfo.h | |
parent | e8fd9928498e182f54a92eb1063b0c5fc0ab420d (diff) |
Printing: Expose default and supported color modes
We had this information internally but there was no public API for it
Fixes: QTBUG-4071
Change-Id: Ic7f855e32a6870129e7723a47d31a629e0ea1aca
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'src/printsupport/kernel/qprinterinfo.h')
-rw-r--r-- | src/printsupport/kernel/qprinterinfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/printsupport/kernel/qprinterinfo.h b/src/printsupport/kernel/qprinterinfo.h index 8bac395ab3..7195cb76b5 100644 --- a/src/printsupport/kernel/qprinterinfo.h +++ b/src/printsupport/kernel/qprinterinfo.h @@ -93,6 +93,9 @@ public: QPrinter::DuplexMode defaultDuplexMode() const; QList<QPrinter::DuplexMode> supportedDuplexModes() const; + QPrinter::ColorMode defaultColorMode() const; + QList<QPrinter::ColorMode> supportedColorModes() const; + static QStringList availablePrinterNames(); static QList<QPrinterInfo> availablePrinters(); |