From 2552b027aea21a222b4087d5616c452a4bca1dde Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 11 Jul 2014 21:30:40 -0700 Subject: Printing: use more appropriate font sizes 2-up and 6-up need different fonts. Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'qt-ui/models.cpp') diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index da1680409..4df9c54f2 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -1854,6 +1854,11 @@ void ProfilePrintModel::setDive(struct dive *divePtr) // reset(); } +void ProfilePrintModel::setFontsize(double size) +{ + fontSize = size; +} + int ProfilePrintModel::rowCount(const QModelIndex &parent) const { return 12; @@ -1967,7 +1972,7 @@ QVariant ProfilePrintModel::data(const QModelIndex &index, int role) const } case Qt::FontRole: { QFont font; - font.setPointSize(6); + font.setPointSizeF(fontSize); if (row == 0 && col == 0) { font.setBold(true); } -- cgit v1.2.3-70-g09d2