diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-11-30 17:37:27 +0200 |
---|---|---|
committer | Lubomir I. Ivanov <neolit123@gmail.com> | 2013-11-30 17:37:27 +0200 |
commit | d4766a8cce9a7a873f23c29fa2ef7615961686e8 (patch) | |
tree | 79bc4ecbb75006e0744646a4f8d952a2a97ec503 /qt-ui/models.cpp | |
parent | 526985d6e57a1d58a97495c84b4cff814b81af3a (diff) | |
download | subsurface-d4766a8cce9a7a873f23c29fa2ef7615961686e8.tar.gz |
Print: yet another font adjustment for the profile table
We now only use a slightly large font for the "Dive #" entry.
All other font sizes remain at 9px.
Another change is that we now attempt to use 11px for
individual row height. This makes the table at least 12px bigger
(n_rows * increment), but does not cut letters like 'g',
which go slightly bellow the font baseline.
Perhaps this can be improved later by adjusting the font
and row sizes again.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'qt-ui/models.cpp')
-rw-r--r-- | qt-ui/models.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 81bdc22a3..36ee916e3 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -1689,22 +1689,6 @@ QVariant ProfilePrintModel::data(const QModelIndex &index, int role) const font.setPixelSize(baseSize + 1); return QVariant::fromValue(font); } - // dive location - if (row == 1 && col == 0) { - font.setBold(true); - font.setPixelSize(baseSize); - return QVariant::fromValue(font); - } - // depth/duration - if ((row == 0 || row == 1) && col == 4) { - font.setPixelSize(baseSize); - return QVariant::fromValue(font); - } - // notes - if (row > 5 && col == 0) { - font.setPixelSize(baseSize + 1); - return QVariant::fromValue(font); - } font.setPixelSize(baseSize); return QVariant::fromValue(font); } |