[PATCH 3/7] PrintLayout: fix the ProfilePrintModel font
Lubomir I. Ivanov
neolit123 at gmail.com
Thu Jul 24 17:50:41 PDT 2014
From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
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 at gmail.com>
---
qt-ui/printlayout.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index 11be39c..570bda1 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
--
1.7.11.msysgit.0
More information about the subsurface
mailing list