mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: make table more useful
Tweak font size and column widths. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
0d9a1946fa
commit
236ff5c89d
2 changed files with 11 additions and 3 deletions
|
@ -1777,6 +1777,14 @@ QVariant TablePrintModel::data(const QModelIndex &index, int role) const
|
|||
case 6:
|
||||
return list.at(index.row())->location;
|
||||
}
|
||||
if (role == Qt::FontRole) {
|
||||
QFont font;
|
||||
font.setPointSizeF(7.5);
|
||||
if (index.row() == 0 && index.column() == 0) {
|
||||
font.setBold(true);
|
||||
}
|
||||
return QVariant::fromValue(font);
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue