diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2014-07-25 03:50:43 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-24 21:10:06 -0700 |
commit | c51d4ce0b0199fd3c7a94ea6258f6ba177d55331 (patch) | |
tree | fdf4e61132bbae1f6b232f0601a117fd639cc8a3 /qt-ui/printlayout.cpp | |
parent | e3dbbfe9f298092f6dedeab0e23ce28b506a3644 (diff) | |
download | subsurface-c51d4ce0b0199fd3c7a94ea6258f6ba177d55331.tar.gz |
PrintLayout: modify the profile font size based on the #dives per page
For the profile print, the number of dives per page is:
divesPerRow * divesPerColumn
If we have more 3, 0.6 seems optimal, while for less we can
pretty much use the default scale of 1.0.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/printlayout.cpp')
-rw-r--r-- | qt-ui/printlayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp index 5a7dd3a9b..318ba4e0c 100644 --- a/qt-ui/printlayout.cpp +++ b/qt-ui/printlayout.cpp @@ -145,7 +145,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??? + profile->setFontPrintScale(divesPerRow * divesPerColumn > 3 ? 0.6 : 1.0); QSize originalSize = profile->size(); // swap rows/col for landscape if (printer->orientation() == QPrinter::Landscape) { |