+ use screen resolution in PDF export/print preview to reduce memory usage
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5304 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
c8b58f9b26
commit
aed7cd2a5c
|
@ -360,7 +360,7 @@ void EditorView::redo(void)
|
|||
*/
|
||||
void EditorView::print()
|
||||
{
|
||||
QPrinter printer(QPrinter::HighResolution);
|
||||
QPrinter printer(QPrinter::ScreenResolution);
|
||||
printer.setFullPage(true);
|
||||
QPrintDialog dlg(&printer, this);
|
||||
if (dlg.exec() == QDialog::Accepted) {
|
||||
|
@ -370,7 +370,7 @@ void EditorView::print()
|
|||
|
||||
void EditorView::printPreview()
|
||||
{
|
||||
QPrinter printer(QPrinter::HighResolution);
|
||||
QPrinter printer(QPrinter::ScreenResolution);
|
||||
QPrintPreviewDialog dlg(&printer, this);
|
||||
connect(&dlg, SIGNAL(paintRequested (QPrinter *)),
|
||||
this, SLOT(print(QPrinter *)));
|
||||
|
@ -389,7 +389,7 @@ void EditorView::printPdf()
|
|||
{
|
||||
QString filename = FileDialog::getSaveFileName(this, tr("Export PDF"), QString(), tr("PDF file (*.pdf)"));
|
||||
if (!filename.isEmpty()) {
|
||||
QPrinter printer(QPrinter::HighResolution);
|
||||
QPrinter printer(QPrinter::ScreenResolution);
|
||||
printer.setOutputFormat(QPrinter::PdfFormat);
|
||||
printer.setOutputFileName(filename);
|
||||
d->textEdit->document()->print(&printer);
|
||||
|
|
|
@ -362,7 +362,7 @@ void View3DInventor::printPdf()
|
|||
QString filename = FileDialog::getSaveFileName(this, tr("Export PDF"), QString(), tr("PDF file (*.pdf)"));
|
||||
if (!filename.isEmpty()) {
|
||||
Gui::WaitCursor wc;
|
||||
QPrinter printer(QPrinter::HighResolution);
|
||||
QPrinter printer(QPrinter::ScreenResolution);
|
||||
printer.setOutputFormat(QPrinter::PdfFormat);
|
||||
printer.setOutputFileName(filename);
|
||||
print(&printer);
|
||||
|
|
Loading…
Reference in New Issue
Block a user