summaryrefslogtreecommitdiffstats
path: root/qt-models/divelocationmodel.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@intel.com>2015-08-31 21:35:17 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-31 18:43:09 -0700
commite36e4d1faa95439a1806935de6dcbd04d2283d20 (patch)
tree47a54f026cb0be6084d47ebff250b798df91591e /qt-models/divelocationmodel.h
parent560426bf82ef7cb163d8046b722c12b76604006c (diff)
downloadsubsurface-e36e4d1faa95439a1806935de6dcbd04d2283d20.tar.gz
UI code to merge dive sites
Get the Qt data structures and convert to something that we can use in our C - core. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-models/divelocationmodel.h')
-rw-r--r--qt-models/divelocationmodel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-models/divelocationmodel.h b/qt-models/divelocationmodel.h
index 83bc97e67..d5b8705ce 100644
--- a/qt-models/divelocationmodel.h
+++ b/qt-models/divelocationmodel.h
@@ -17,6 +17,7 @@ class LocationInformationModel : public QAbstractTableModel {
Q_OBJECT
public:
enum Columns { UUID, NAME, LATITUDE, LONGITUDE, COORDS, DESCRIPTION, NOTES, TAXONOMY_1, TAXONOMY_2, TAXONOMY_3, COLUMNS};
+ enum Roles { UUID_ROLE = Qt::UserRole + 1 };
static LocationInformationModel *instance();
int columnCount(const QModelIndex &parent) const;
int rowCount(const QModelIndex &parent = QModelIndex()) const;