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();
|
||||
}
|
||||
|
||||
|
|
|
@ -32,9 +32,9 @@ PrintLayout::PrintLayout(PrintDialog *dialogPtr, QPrinter *printerPtr, struct op
|
|||
tablePrintColumnNames.append(tr("Buddy"));
|
||||
tablePrintColumnNames.append(tr("Location"));
|
||||
tablePrintColumnWidths.append(7);
|
||||
tablePrintColumnWidths.append(10);
|
||||
tablePrintColumnWidths.append(10);
|
||||
tablePrintColumnWidths.append(10);
|
||||
tablePrintColumnWidths.append(14);
|
||||
tablePrintColumnWidths.append(8);
|
||||
tablePrintColumnWidths.append(8);
|
||||
tablePrintColumnWidths.append(15);
|
||||
tablePrintColumnWidths.append(15);
|
||||
tablePrintColumnWidths.append(33);
|
||||
|
|
Loading…
Add table
Reference in a new issue