summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2014-07-25 03:50:41 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-24 21:06:42 -0700
commit3af7db71c8cbbbcb802561ed2a7f49413362f966 (patch)
treedfa5581c7ca17d6ab2b4bcf8120fd0d4edad1297 /qt-ui
parentfeda96cec5ddf899066ea77d2acf91f6310f0452 (diff)
downloadsubsurface-3af7db71c8cbbbcb802561ed2a7f49413362f966.tar.gz
PrintLayout: fix the ProfilePrintModel font
Fixing the font size is required, because we don't really support a dynamic row height, as the row height is set in the class constructor. 7 seems optimal for all print modes. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/printlayout.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index 11be39c62..570bda12c 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -165,7 +165,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);
+ model.setFontsize(7); // if this is changed we also need to change 'const int sr' in the constructor
// if there is only one dive per page row we pass fitNotesToHeight to be almost half the page height
QPointer<QTableView> table(createProfileTable(&model, scaledW, (divesPerRow == 1) ? scaledH * 0.45 : 0.0));
// profilePrintTableMaxH updates after the table is created