mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Print: set correct row/column location for profile notes
NOTE: also comment out the old cylinder/weight printing code... Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
parent
19b68d38ac
commit
ab8e781660
1 changed files with 9 additions and 0 deletions
|
@ -1618,6 +1618,14 @@ QVariant ProfilePrintModel::data(const QModelIndex &index, int role) const
|
|||
if (col == 4)
|
||||
return tr("Weights:");
|
||||
}
|
||||
// notes
|
||||
if (col == 0) {
|
||||
if (row == 6)
|
||||
return tr("Notes:");
|
||||
if (row == 7)
|
||||
return QString(dive->notes);
|
||||
}
|
||||
/*
|
||||
// cylinder data
|
||||
if (row > 2 && row < 10 && row - 3 < MAX_CYLINDERS) {
|
||||
cylinder_t *cyl = &dive->cylinder[row - 3];
|
||||
|
@ -1684,6 +1692,7 @@ QVariant ProfilePrintModel::data(const QModelIndex &index, int role) const
|
|||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
return QString();
|
||||
}
|
||||
case Qt::FontRole: {
|
||||
|
|
Loading…
Add table
Reference in a new issue