summaryrefslogtreecommitdiffstats
path: root/qt-ui/printlayout.cpp
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-10-15 12:54:17 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-15 04:23:56 -0700
commit88b1e09dee7b78f1bd4fba40e75b619e6d8067df (patch)
tree8cc0c37b7a9c8ae1e855183f27d288ba6f8b9576 /qt-ui/printlayout.cpp
parentf818ece0748a2bcd58d4b12f8d7566ff79ebf27f (diff)
downloadsubsurface-88b1e09dee7b78f1bd4fba40e75b619e6d8067df.tar.gz
printlayout.cpp: Increase the font size in tables bellow profile
Because of varying font (screen) DPI we use pixel sized fonts when printing. Apparently 8px does not look that good on Windows default fonts, but kinda OK on Linux. We compensate by increasing the font size and table rows to 9px. Also decrease the padding between the table and profile to 5px. 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.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index d0f3f16da..0c18213e1 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -44,7 +44,7 @@ PrintLayout::PrintLayout(PrintDialog *dialogPtr, QPrinter *printerPtr, struct op
profilePrintColumnWidths.append(dw - 5);
profilePrintColumnWidths.append(dw + 5);
profilePrintColumnWidths.append(dw - 5); // fit to 100%
- const int sr = 8; // smallest row height in pixels
+ const int sr = 9; // smallest row height in pixels
profilePrintRowHeights.append(sr + 2);
profilePrintRowHeights.append(sr + 7);
profilePrintRowHeights.append(sr);
@@ -133,7 +133,7 @@ void PrintLayout::printProfileDives(int divesPerRow, int divesPerColumn)
const int scaledW = ESTIMATE_DIVE_DIM(scaledPageW, divesPerColumn, padW);
const int scaledH = ESTIMATE_DIVE_DIM(scaledPageH, divesPerRow, padH);
// padding in pixels between profile and table
- const int padPT = 10;
+ const int padPT = 5;
// create a model and table
ProfilePrintModel model;
QTableView *table = createProfileTable(&model, scaledW);