Add helper to remove dive from model

I tried various things to do this from QML but it just doesn't seem to
work at all. So I gave up and instead added a trivial helper function.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2016-01-29 06:25:13 -08:00
parent 957f03f2a4
commit 9f7ecbb53e
4 changed files with 19 additions and 1 deletions

View file

@ -556,6 +556,11 @@ QString QMLManager::addDive()
return DiveListModel::instance()->startAddDive();
}
void QMLManager::addDiveAborted(int id)
{
DiveListModel::instance()->removeDiveById(id);
}
QString QMLManager::getCurrentPosition()
{
return locationProvider->currentPosition();