mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
9342dedb26
commit
6f953d51de
2 changed files with 19 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue