From ab8e781660b412b98d95940103bf79b57536498c Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Sat, 30 Nov 2013 16:09:54 +0200 Subject: 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 --- qt-ui/models.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'qt-ui/models.cpp') diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 53754a1ed..33ea95785 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -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: { -- cgit v1.2.3-70-g09d2