diff options
Diffstat (limited to 'qt-ui/profile/diveplotdatamodel.cpp')
-rw-r--r-- | qt-ui/profile/diveplotdatamodel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qt-ui/profile/diveplotdatamodel.cpp b/qt-ui/profile/diveplotdatamodel.cpp index 94a8af5ba..700ca6503 100644 --- a/qt-ui/profile/diveplotdatamodel.cpp +++ b/qt-ui/profile/diveplotdatamodel.cpp @@ -109,6 +109,7 @@ void DivePlotDataModel::setDive(dive* d, const plot_info& info) clear(); Q_ASSERT(d != NULL); diveId = d->id; + dcNr = dc_number; pInfo = info; beginInsertRows(QModelIndex(), 0, pInfo.nr-1); endInsertRows(); @@ -119,6 +120,11 @@ int DivePlotDataModel::id() const return diveId; } +int DivePlotDataModel::dcShown() const +{ + return dcNr; +} + #define MAX_PPGAS_FUNC( GAS, GASFUNC ) \ double DivePlotDataModel::GASFUNC() \ { \ |