aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-11-30 16:09:54 +0200
committerGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-11-30 16:10:48 +0200
commitab8e781660b412b98d95940103bf79b57536498c (patch)
tree5535ee229c02b7a69436311e9746201f2cfca257
parent19b68d38ac0bcaa622e09dbf004e5ce037acd464 (diff)
downloadsubsurface-ab8e781660b412b98d95940103bf79b57536498c.tar.gz
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>
-rw-r--r--qt-ui/models.cpp9
1 files changed, 9 insertions, 0 deletions
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: {