Unix: Disable complex page ranges widget when printing to pdf
It doesn't work since it relies on cups to do the heavy lifting and cups is not used when printing to PDF Task-number: QTBUG-77351 Change-Id: I1bdda58b50112b9bb3d7991f3cfd860d6b4f4fc4 Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>bb10
parent
3d29f2198f
commit
fdffa035ba
|
|
@ -727,6 +727,11 @@ void QPrintDialogPrivate::selectPrinter(const QPrinter::OutputFormat outputForma
|
|||
else
|
||||
options.pageSetCombo->setEnabled(true);
|
||||
|
||||
// Disable complex page ranges widget when printing to pdf
|
||||
// It doesn't work since it relies on cups to do the heavy lifting and cups
|
||||
// is not used when printing to PDF
|
||||
options.pagesRadioButton->setEnabled(outputFormat != QPrinter::PdfFormat);
|
||||
|
||||
#if QT_CONFIG(cups)
|
||||
// Disable color options on main dialog if not printing to file, it will be handled by CUPS advanced dialog
|
||||
options.colorMode->setVisible(outputFormat == QPrinter::PdfFormat);
|
||||
|
|
|
|||
Loading…
Reference in New Issue