summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-09 13:09:52 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-09 13:12:29 -0700
commit76a8e83a541febe9b94ec84d3fd8320c86999265 (patch)
treeaa64d0b6de2e28c73026653479cab60f0b6f3d10 /qt-ui/printlayout.cpp
parent2d77788cb2fe293b72cff7f51a200d90c928dcea (diff)
downloadsubsurface-76a8e83a541febe9b94ec84d3fd8320c86999265.tar.gz
Printing: scale fonts when printing
This seem to work better, but it misses a couple of items at times (for example the highest label on some of the axis). Needs lots more testing. See #590 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.cpp')
-rw-r--r--qt-ui/printlayout.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index 1c0a82829..a23b8e3a8 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -136,6 +136,7 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
const int profileFrameStyle = profile->frameStyle();
profile->setFrameStyle(QFrame::NoFrame);
profile->setPrintMode(true, !printOptions->color_selected);
+ profile->setFontPrintScale(0.4); // does a single scale work for all layouts???
QSize originalSize = profile->size();
// swap rows/col for landscape
if (printer->orientation() == QPrinter::Landscape) {