summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-07-10 16:04:00 +0300
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-07-10 16:18:16 +0300
commit20804b16d333f0a9d8b9f5e6eba05eddd60cc68e (patch)
tree283106304ecc3c434fba10cba3279e623492b9d2 /qt-ui/printlayout.h
parent41bad7695ee40571062a370610e6ca518295e3c7 (diff)
downloadsubsurface-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/printlayout.h')
-rw-r--r--qt-ui/printlayout.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h
index e9129bff6..120f50d61 100644
--- a/qt-ui/printlayout.h
+++ b/qt-ui/printlayout.h
@@ -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();