summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-31 23:55:53 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-09-06 11:48:47 -0700
commit15f418e04656e01bc55ebbd80686c74b9727339d (patch)
tree3818e90baa133e064b0d98fbfc4870fd48769cff /qt-models
parent406e83ac3004dc0f63b3f2e81d91067276248277 (diff)
downloadsubsurface-15f418e04656e01bc55ebbd80686c74b9727339d.tar.gz
Cleanup: remove Q_PROPERTIEs from MapLocation
We never dish out an object of this type to QML. It is unclear how Q_PROPERTIEs could be of any use. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/maplocationmodel.cpp5
-rw-r--r--qt-models/maplocationmodel.h4
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 {