Unix: Correctly update options pane for PDF printer
Update printer and m_currentPrintDevice before calling QPrintDialogPrivate::selectPrinter() to show values for PDF printer instead of the previously selected printer. Pick-to: 6.3 6.2 5.15 Change-Id: Iacc34ca4460ec4de0b4b373cd875628733df01bd Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
This commit is contained in:
parent
7c12eb1706
commit
e494b39b33
@ -1172,10 +1172,10 @@ void QUnixPrintWidgetPrivate::_q_printerChanged(int index)
|
||||
QString filename = widget.filename->text();
|
||||
widget.filename->setText(filename);
|
||||
widget.lOutput->setEnabled(true);
|
||||
if (optionsPane)
|
||||
optionsPane->selectPrinter(QPrinter::PdfFormat);
|
||||
printer->setOutputFormat(QPrinter::PdfFormat);
|
||||
m_currentPrintDevice = QPrintDevice();
|
||||
if (optionsPane)
|
||||
optionsPane->selectPrinter(QPrinter::PdfFormat);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user