mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
8cd4a5f3d1
commit
ece93107d9
1 changed files with 1 additions and 5 deletions
|
@ -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: {
|
||||
|
|
Loading…
Reference in a new issue