diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2014-07-11 20:34:39 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-07-11 17:02:24 -0700 |
commit | ece93107d9dc0ae56ae30bcbece68e115de397da (patch) | |
tree | 9921c38c9f2d6b97eb6178690fae407a7eb552f7 /qt-ui | |
parent | 8cd4a5f3d1109cb1ded07f35556a77089350fe41 (diff) | |
download | subsurface-ece93107d9dc0ae56ae30bcbece68e115de397da.tar.gz |
Better default font for printing.
use setPointSize instead of setPixelSize to make it device independent,
also reduced a bit the size of the font.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/models.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 8d9942a9c..da1680409 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -1967,14 +1967,10 @@ QVariant ProfilePrintModel::data(const QModelIndex &index, int role) const } case Qt::FontRole: { QFont font; - const int baseSize = 7; - // dive # + font.setPointSize(6); if (row == 0 && col == 0) { font.setBold(true); - font.setPixelSize(baseSize + 1); - return QVariant::fromValue(font); } - font.setPixelSize(baseSize); return QVariant::fromValue(font); } case Qt::TextAlignmentRole: { |