Skip to content

Commit

Permalink
fix: printer output format
Browse files Browse the repository at this point in the history
Change-Id: Idecc705930cb760683986d5b2acc43f44d6730c0
  • Loading branch information
rekols committed Sep 14, 2018
1 parent 2683cae commit 5c37338
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1226,6 +1226,8 @@ void Window::popupPrintDialog()
printer.setOutputFileName(QString("%1/%2.pdf").arg(fileDir, QFileInfo(filePath).baseName()));
}

printer.setOutputFormat(QPrinter::PdfFormat);

connect(&preview, &QPrintPreviewDialog::paintRequested, this, [=] (QPrinter *printer) {
getActiveEditor()->textEditor->print(printer);
});
Expand Down

0 comments on commit 5c37338

Please sign in to comment.