diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-07-12 19:23:47 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-07-18 12:00:12 -0700 |
commit | b241b7c06a970578152154313c9c10627882c292 (patch) | |
tree | f0b35d8da5e758314c8f02534a4ca804c090fc4f /qt-ui/printdialog.cpp | |
parent | 8ea849d0c29de3af33ca7a2354eeb30a34afe1f4 (diff) | |
download | subsurface-b241b7c06a970578152154313c9c10627882c292.tar.gz |
Print: add experimental code for printing profiles
PrintLayout::printSixDives() goes trough all dives
and prints their profiles on full portrait pages.
This method is based on resizing the ProfileGraphicsView
widget, plotting each dive and then 'grabbing' it using
QPixmap::grabWidget().
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/printdialog.cpp')
-rw-r--r-- | qt-ui/printdialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/printdialog.cpp b/qt-ui/printdialog.cpp index 542590707..f4bf16d05 100644 --- a/qt-ui/printdialog.cpp +++ b/qt-ui/printdialog.cpp @@ -47,6 +47,7 @@ void PrintDialog::printClicked(void) // printer.setOutputFileName("print.pdf"); // printer.setOutputFormat(QPrinter::PdfFormat); // temporary: use a preview dialog + printer.setResolution(300); QPrintPreviewDialog previewDialog(&printer, this); QObject::connect(&previewDialog, SIGNAL(paintRequested(QPrinter *)), this, SLOT(onPaintRequested(QPrinter *))); previewDialog.exec(); |