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
|
@ -20,7 +20,11 @@ private:
|
|||
struct options *printOptions;
|
||||
|
||||
QPainter painter;
|
||||
int screenDpiX, screenDpiY, printerDpi;
|
||||
qreal scaleX, scaleY;
|
||||
QRect pageRect;
|
||||
|
||||
void setup();
|
||||
void printSixDives();
|
||||
void printTwoDives();
|
||||
void printTable();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue