diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2016-01-29 06:25:13 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2016-01-29 07:50:38 -0800 |
commit | 9f7ecbb53eabe4028f44ac420cd176bf8c76421e (patch) | |
tree | 38b16136a1515175309940282261203908af4668 /qt-models/divelistmodel.h | |
parent | 957f03f2a437bf735379405540102db5bdb548f4 (diff) | |
download | subsurface-9f7ecbb53eabe4028f44ac420cd176bf8c76421e.tar.gz |
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>
Diffstat (limited to 'qt-models/divelistmodel.h')
-rw-r--r-- | qt-models/divelistmodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h index 675619640..fd703c14a 100644 --- a/qt-models/divelistmodel.h +++ b/qt-models/divelistmodel.h @@ -33,6 +33,7 @@ public: void addDive(dive *d); void insertDive(int i, DiveObjectHelper *newDive); void removeDive(int i); + void removeDiveById(int id); void updateDive(int i, dive *d); void clear(); int rowCount(const QModelIndex &parent = QModelIndex()) const; |