diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-09 12:26:58 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-09 21:00:44 -0700 |
commit | d6010b5155e7c1b03d1872eb3ed75c39e070ad55 (patch) | |
tree | fb8a33c76b4e9a4afd0dafebefa16bd55f76c199 /desktop-widgets/locationinformation.h | |
parent | 19d651a36b8f5c955ef3e147bbb3efa93028f959 (diff) | |
download | subsurface-d6010b5155e7c1b03d1872eb3ed75c39e070ad55.tar.gz |
Dive locations: factor out common code of models
For increased maintainability, use the same columns, roles and
the same accessor function for both dive-site models.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/locationinformation.h')
-rw-r--r-- | desktop-widgets/locationinformation.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/desktop-widgets/locationinformation.h b/desktop-widgets/locationinformation.h index 3b88bd030..736e53e04 100644 --- a/desktop-widgets/locationinformation.h +++ b/desktop-widgets/locationinformation.h @@ -63,7 +63,6 @@ public: class DiveLocationModel : public QAbstractTableModel { Q_OBJECT public: - enum columns{UUID, NAME, LATITUDE, LONGITUDE, DESCRIPTION, NOTES, COLUMNS}; DiveLocationModel(QObject *o = 0); void resetModel(); QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; |