summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-07-25 03:50:40 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-24 21:06:19 -0700
commitfeda96cec5ddf899066ea77d2acf91f6310f0452 (patch)
tree02ea2c37f77bacc30e59c64c3134432551c49a63 /qt-ui/printlayout.h
parent5e8f4c8560e5e21347531f09e48e3df802ae3b98 (diff)
downloadsubsurface-feda96cec5ddf899066ea77d2acf91f6310f0452.tar.gz
PrintLayout: disable the QPainter scaling
This is wrong because we don't really need to scale. We already have the estimated page dimentions in pixels, so taking the quotient of the printer DPI and screen DPI and then scaling (probably up) our rendered widgets via the QPainter introduces blur (due to the oversampling), and a performance penalty. By rendering at the exact dimensions we ensure that the widgets are crisp at a 100% printout. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.h')
-rw-r--r--qt-ui/printlayout.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/qt-ui/printlayout.h b/qt-ui/printlayout.h
index efd3159a8..9a816a3c1 100644
--- a/qt-ui/printlayout.h
+++ b/qt-ui/printlayout.h
@@ -25,8 +25,7 @@ private:
QPrinter *printer;
struct options *printOptions;
- int screenDpiX, screenDpiY, printerDpi, scaledPageW, scaledPageH;
- qreal scaleX, scaleY;
+ int screenDpiX, screenDpiY, printerDpi, pageW, pageH;
QRect pageRect;
QVector<QString> tablePrintColumnNames;