diff options
Diffstat (limited to 'qt-models/maplocationmodel.h')
-rw-r--r-- | qt-models/maplocationmodel.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index 3fb6f1da8..8cec08818 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -21,9 +21,10 @@ public: static const char *PROPERTY_NAME_COORDINATE; static const char *PROPERTY_NAME_DIVESITE; static const char *PROPERTY_NAME_NAME; + static const char *PROPERTY_NAME_PIXMAP; explicit MapLocation(); - explicit MapLocation(struct dive_site *ds, QGeoCoordinate coord, QString name); + explicit MapLocation(struct dive_site *ds, QGeoCoordinate coord, QString name, bool selected); QVariant getRole(int role) const; QGeoCoordinate coordinate(); @@ -35,13 +36,16 @@ public: enum Roles { RoleDivesite = Qt::UserRole + 1, RoleCoordinate, - RoleName + RoleName, + RolePixmap }; private: struct dive_site *m_ds; QGeoCoordinate m_coordinate; QString m_name; +public: + bool m_selected = false; signals: void coordinateChanged(); |