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>
This commit is contained in:
Dirk Hohndel 2016-01-27 11:27:41 -08:00
parent 9342dedb26
commit 6f953d51de
2 changed files with 19 additions and 2 deletions

View file

@ -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;