mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: use more appropriate font sizes
2-up and 6-up need different fonts. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
a4d1163d21
commit
2552b027ae
3 changed files with 9 additions and 1 deletions
|
@ -1854,6 +1854,11 @@ void ProfilePrintModel::setDive(struct dive *divePtr)
|
|||
// reset();
|
||||
}
|
||||
|
||||
void ProfilePrintModel::setFontsize(double size)
|
||||
{
|
||||
fontSize = size;
|
||||
}
|
||||
|
||||
int ProfilePrintModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
return 12;
|
||||
|
@ -1967,7 +1972,7 @@ QVariant ProfilePrintModel::data(const QModelIndex &index, int role) const
|
|||
}
|
||||
case Qt::FontRole: {
|
||||
QFont font;
|
||||
font.setPointSize(6);
|
||||
font.setPointSizeF(fontSize);
|
||||
if (row == 0 && col == 0) {
|
||||
font.setBold(true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue