mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
73d6057424
commit
d1c4bcf570
4 changed files with 14 additions and 3 deletions
|
@ -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() \
|
||||
{ \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue