mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
41bad7695e
commit
20804b16d3
3 changed files with 25 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue