New profile: enable switching between dive computers

This was mostly in place, just needed to be hooked up.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2014-02-11 09:55:14 -08:00
parent 73d6057424
commit d1c4bcf570
4 changed files with 14 additions and 3 deletions

View file

@ -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() \
{ \