summaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-27 11:27:41 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2016-01-27 11:32:40 -0800
commit6f953d51de0796bd584938d759b32eeffb849463 (patch)
tree21d4578f12991ff94f24770c1e89d6a0f9864132 /qt-models/divelistmodel.h
parent9342dedb265ed314e1657e82aef407176f7d1e04 (diff)
downloadsubsurface-6f953d51de0796bd584938d759b32eeffb849463.tar.gz
QML UI: correctly notify of model change
This may seem weird, but it seems to work to make sure that the model actually is correctly updated when updating a dive. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelistmodel.h')
-rw-r--r--qt-models/divelistmodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h
index 5265cd1b0..adc298515 100644
--- a/qt-models/divelistmodel.h
+++ b/qt-models/divelistmodel.h
@@ -20,6 +20,8 @@ public:
static DiveListModel *instance();
DiveListModel(QObject *parent = 0);
void addDive(dive *d);
+ void insertDive(int i, DiveObjectHelper *newDive);
+ void removeDive(int i);
void updateDive(dive *d);
void clear();
int rowCount(const QModelIndex &parent = QModelIndex()) const;