mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
planner: remove global model instances
The only user of the DivePlannerPointsModel and the GasSelectionModel is the planner. Let's keep these models there. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
3dd09b31e3
commit
b5682369f8
6 changed files with 33 additions and 29 deletions
|
|
@ -18,12 +18,6 @@ Qt::ItemFlags GasSelectionModel::flags(const QModelIndex&) const
|
|||
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
|
||||
}
|
||||
|
||||
GasSelectionModel *GasSelectionModel::instance()
|
||||
{
|
||||
static GasSelectionModel self;
|
||||
return &self;
|
||||
}
|
||||
|
||||
void GasSelectionModel::repopulate()
|
||||
{
|
||||
setStringList(get_dive_gas_list(&displayed_dive));
|
||||
|
|
@ -43,12 +37,6 @@ Qt::ItemFlags DiveTypeSelectionModel::flags(const QModelIndex&) const
|
|||
return Qt::ItemIsEnabled | Qt::ItemIsSelectable;
|
||||
}
|
||||
|
||||
DiveTypeSelectionModel *DiveTypeSelectionModel::instance()
|
||||
{
|
||||
static DiveTypeSelectionModel self;
|
||||
return &self;
|
||||
}
|
||||
|
||||
void DiveTypeSelectionModel::repopulate()
|
||||
{
|
||||
QStringList modes;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue