From 6cd85d9b731ef646b605d483dbbcddbc70283338 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Mon, 1 Jun 2015 23:13:51 -0300 Subject: Simplify model handling and crashes fixes So, there's only one crash left (that I put a big TODO: on the maintab.cpp about) and I'll fix it tomorrow as it's quite late here and I'm almost sleeping at the keyboard. Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-models/divelocationmodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-models/divelocationmodel.h') diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h index 7ca0c926a..4e5adf104 100644 --- a/qt-models/divelocationmodel.h +++ b/qt-models/divelocationmodel.h @@ -13,6 +13,8 @@ public: QVariant data(const QModelIndex &index = QModelIndex(), int role = Qt::DisplayRole) const; int32_t addDiveSite(const QString& name, int lat = 0, int lon = 0); bool setData(const QModelIndex &index, const QVariant &value, int role); + bool removeRows(int row, int count, const QModelIndex & parent = QModelIndex()); + public slots: void update(); private: -- cgit v1.2.3-70-g09d2