diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-06-01 22:16:07 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-01 21:31:16 -0700 |
commit | a9ba98942ccdacda37fa038fef46c478271aca22 (patch) | |
tree | 992f603753a72262bad8d79dbe3cbc651bfeff28 /qt-models/divelocationmodel.h | |
parent | 64753e0682d1fd008d9cdf573e78fe5ea862dcef (diff) | |
download | subsurface-a9ba98942ccdacda37fa038fef46c478271aca22.tar.gz |
Correctly change the dive_site name
Correctly change and update the dive_site, updating the name on the
combobox or other attached views.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelocationmodel.h')
-rw-r--r-- | qt-models/divelocationmodel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h index c9dd5cee5..7ca0c926a 100644 --- a/qt-models/divelocationmodel.h +++ b/qt-models/divelocationmodel.h @@ -12,7 +12,7 @@ public: int rowCount(const QModelIndex &parent = QModelIndex()) const; 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); public slots: void update(); private: |