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>
This commit is contained in:
Tomaz Canabrava 2014-07-11 20:34:39 -03:00 committed by Dirk Hohndel
parent 8cd4a5f3d1
commit ece93107d9

View file

@ -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: {