diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-10 16:04:00 +0300 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-10 16:18:16 +0300 |
commit | 20804b16d333f0a9d8b9f5e6eba05eddd60cc68e (patch) | |
tree | 283106304ecc3c434fba10cba3279e623492b9d2 /qt-ui/printdialog.cpp | |
parent | 41bad7695ee40571062a370610e6ca518295e3c7 (diff) | |
download | subsurface-20804b16d333f0a9d8b9f5e6eba05eddd60cc68e.tar.gz |
Print: add a setup() method to PrintLayout
The setup() method will be called each time to obtain the
current printer settings. Also it calculates required scalling
based on screen agains printer DPI.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printdialog.cpp')
-rw-r--r-- | qt-ui/printdialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp index 9774a79f6..5652101ff 100644 --- a/qt-ui/printdialog.cpp +++ b/qt-ui/printdialog.cpp @@ -43,6 +43,9 @@ void PrintDialog::runDialog() void PrintDialog::printClicked(void) { - // nop for now + // temporary + printer.setOutputFileName("print.pdf"); + printer.setOutputFormat(QPrinter::PdfFormat); + // --------- printLayout->print(); } |