aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-11-30 15:50:47 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-11-30 15:50:47 +0200
commitd0dfec929fc7f2f43bd116c881b995779d7a9a17 (patch)
tree8f8aa32e862cb392a0d0d6c11e5d3fc73f4284cf
parent89ba9b113d0cc872b994439e581f206955014bed (diff)
downloadsubsurface-d0dfec929fc7f2f43bd116c881b995779d7a9a17.tar.gz
Print: give more space for the depth and duration column
There is not enough space for the last column in "6 print" even for the english text. This gives more space extending the row, but for some languages it will be an issue, thus strings have to be eventually shortened by the translators. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
-rw-r--r--qt-ui/printlayout.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt-ui/printlayout.cpp b/qt-ui/printlayout.cpp
index a0533b71d..b24248d64 100644
--- a/qt-ui/printlayout.cpp
+++ b/qt-ui/printlayout.cpp
@@ -39,9 +39,9 @@ PrintLayout::PrintLayout(PrintDialog *dialogPtr, QPrinter *printerPtr, struct op
const int dw = 20; // base percentage
profilePrintColumnWidths.append(dw);
profilePrintColumnWidths.append(dw);
- profilePrintColumnWidths.append(dw);
- profilePrintColumnWidths.append(dw);
- profilePrintColumnWidths.append(dw); // fit to 100%
+ profilePrintColumnWidths.append(dw - 3);
+ profilePrintColumnWidths.append(dw - 3);
+ profilePrintColumnWidths.append(dw + 6); // fit to 100%
const int sr = 10; // smallest row height in pixels
profilePrintRowHeights.append(sr + 2);
profilePrintRowHeights.append(sr + 5);