summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-11 21:51:44 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-07-11 21:51:44 -0700
commit236ff5c89da90e840acc0becf8efae41fc5b6282 (patch)
tree7c45a9c94efc2dcb68495ddbff56e997d2f2e732 /qt-ui/models.cpp
parent0d9a1946fa04c3c806d249f0c1466a4163547dbc (diff)
downloadsubsurface-236ff5c89da90e840acc0becf8efae41fc5b6282.tar.gz
Printing: make table more useful
Tweak font size and column widths. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r--qt-ui/models.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp
index 52ba40d9c..03c95b070 100644
--- a/qt-ui/models.cpp
+++ b/qt-ui/models.cpp
@@ -1777,6 +1777,14 @@ QVariant TablePrintModel::data(const QModelIndex &index, int role) const
case 6:
return list.at(index.row())->location;
}
+ if (role == Qt::FontRole) {
+ QFont font;
+ font.setPointSizeF(7.5);
+ if (index.row() == 0 && index.column() == 0) {
+ font.setBold(true);
+ }
+ return QVariant::fromValue(font);
+ }
return QVariant();
}