mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Set printer resolution
You need a better resolution to plot a picture with high resolution... Connection done with a lambda expression thanks to @dirkhh. Signed-off-by: Robert C. Helling <helling@atdotde.de> (+1 squashed commit) Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
02a4aa927e
commit
8f6d054140
4 changed files with 35 additions and 1 deletions
|
@ -171,6 +171,7 @@ void PrintDialog::createPrinterObj()
|
|||
// create a new printer object
|
||||
if (!printer) {
|
||||
qprinter = new QPrinter();
|
||||
qprinter->setResolution(printOptions.resolution);
|
||||
qprinter->setOrientation((QPrinter::Orientation)printOptions.landscape);
|
||||
printer = new Printer(qprinter, &printOptions, &templateOptions, Printer::PRINT);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue