summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-11 21:30:40 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-11 21:30:40 -0700
commit2552b027aea21a222b4087d5616c452a4bca1dde (patch)
tree73dd512863a379db1dbbc0e5058c4f5fd8df2009 /qt-ui/printlayout.cpp
parenta4d1163d21c5347ac69eee98def182a104db490b (diff)
downloadsubsurface-2552b027aea21a222b4087d5616c452a4bca1dde.tar.gz
Printing: use more appropriate font sizes
2-up and 6-up need different fonts. 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 159cd04db..59b6d392a 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -166,6 +166,7 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
const int padPT = 5;
// create a model and table
ProfilePrintModel model;
+ model.setFontsize(divesPerColumn == 1 ? 6.5 : 4.5);
QPointer<QTableView> table(createProfileTable(&model, scaledW));
// profilePrintTableMaxH updates after the table is created
const int tableH = profilePrintTableMaxH;