summaryrefslogtreecommitdiffstats
path: root/qt-ui/profile/diveplotdatamodel.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-21 13:27:08 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-21 09:39:09 -0800
commit0a4e21a16813592031baf8ca90bc52418aa8965e (patch)
tree1d9d255b45de6bbe048e911fdca2fcb59d7982b2 /qt-ui/profile/diveplotdatamodel.cpp
parentcaba6500d63e6081565aebd9e872e48b049e5d03 (diff)
downloadsubsurface-0a4e21a16813592031baf8ca90bc52418aa8965e.tar.gz
Add the depth text.
Depth text got added to the new profile. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/profile/diveplotdatamodel.cpp')
-rw-r--r--qt-ui/profile/diveplotdatamodel.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/profile/diveplotdatamodel.cpp b/qt-ui/profile/diveplotdatamodel.cpp
index 32067d3e0..b0532f6a9 100644
--- a/qt-ui/profile/diveplotdatamodel.cpp
+++ b/qt-ui/profile/diveplotdatamodel.cpp
@@ -45,6 +45,11 @@ QVariant DivePlotDataModel::data(const QModelIndex& index, int role) const
return QVariant();
}
+plot_data* DivePlotDataModel::data()
+{
+ return plotData;
+}
+
int DivePlotDataModel::rowCount(const QModelIndex& parent) const
{
return sampleCount;