Improve what is a color/mono choice
This commit is contained in:
parent
ee4b562560
commit
dd6bca12fc
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ void IppPrinter::print(QJsonObject attrs, QString filename, bool alwaysConvert,
|
||||||
quint32 Quality = getAttrOrDefault(attrs, "print-quality").toInt();
|
quint32 Quality = getAttrOrDefault(attrs, "print-quality").toInt();
|
||||||
|
|
||||||
QString PrintColorMode = getAttrOrDefault(attrs, "print-color-mode").toString();
|
QString PrintColorMode = getAttrOrDefault(attrs, "print-color-mode").toString();
|
||||||
quint32 Colors = PrintColorMode=="color" ? 3 : PrintColorMode=="monochrome" ? 1 : 0;
|
quint32 Colors = PrintColorMode.contains("color") ? 3 : PrintColorMode.contains("monochrome") ? 1 : 0;
|
||||||
|
|
||||||
QString PaperSize = getAttrOrDefault(attrs, "media").toString();
|
QString PaperSize = getAttrOrDefault(attrs, "media").toString();
|
||||||
if(!PaperSizes.contains(PaperSize))
|
if(!PaperSizes.contains(PaperSize))
|
||||||
|
|
Loading…
Reference in a new issue