mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Printing: print depth unit in table
When adding the method that includes the depth unit to the DiveItem class I realized that this was yet another implementation of our depth unit conversion. We should just call the existing helper instead. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
236ff5c89d
commit
e1ae7ebab2
3 changed files with 9 additions and 11 deletions
|
@ -422,7 +422,7 @@ void PrintLayout::addTablePrintDataRow(TablePrintModel *model, int row, struct d
|
|||
model->insertRow();
|
||||
model->setData(model->index(row, 0), QString::number(dive->number), Qt::DisplayRole);
|
||||
model->setData(model->index(row, 1), di.displayDate(), Qt::DisplayRole);
|
||||
model->setData(model->index(row, 2), di.displayDepth(), Qt::DisplayRole);
|
||||
model->setData(model->index(row, 2), di.displayDepthWithUnit(), Qt::DisplayRole);
|
||||
model->setData(model->index(row, 3), di.displayDuration(), Qt::DisplayRole);
|
||||
model->setData(model->index(row, 4), dive->divemaster, Qt::DisplayRole);
|
||||
model->setData(model->index(row, 5), dive->buddy, Qt::DisplayRole);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue