diff options
Diffstat (limited to 'qt-models')
-rw-r--r-- | qt-models/maplocationmodel.cpp | 5 | ||||
-rw-r--r-- | qt-models/maplocationmodel.h | 4 |
2 files changed, 0 insertions, 9 deletions
diff --git a/qt-models/maplocationmodel.cpp b/qt-models/maplocationmodel.cpp index 922b29ac0..4e513398b 100644 --- a/qt-models/maplocationmodel.cpp +++ b/qt-models/maplocationmodel.cpp @@ -76,11 +76,6 @@ struct dive_site *MapLocation::divesite() return m_ds; } -QVariant MapLocation::divesiteVariant() -{ - return QVariant::fromValue(m_ds); -} - MapLocationModel::MapLocationModel(QObject *parent) : QAbstractListModel(parent) { connect(&diveListNotifier, &DiveListNotifier::diveSiteChanged, this, &MapLocationModel::diveSiteChanged); diff --git a/qt-models/maplocationmodel.h b/qt-models/maplocationmodel.h index a89695ccd..4f56a146f 100644 --- a/qt-models/maplocationmodel.h +++ b/qt-models/maplocationmodel.h @@ -13,9 +13,6 @@ class MapLocation : public QObject { Q_OBJECT - Q_PROPERTY(QVariant divesite READ divesiteVariant) - Q_PROPERTY(QGeoCoordinate coordinate READ coordinate WRITE setCoordinate NOTIFY coordinateChanged) - Q_PROPERTY(QString name MEMBER m_name) public: explicit MapLocation(); @@ -25,7 +22,6 @@ public: QGeoCoordinate coordinate(); void setCoordinate(QGeoCoordinate coord); void setCoordinateNoEmit(QGeoCoordinate coord); - QVariant divesiteVariant(); struct dive_site *divesite(); enum Roles { |