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>
This commit is contained in:
Berthold Stoeger 2019-08-31 23:55:53 +02:00 committed by Dirk Hohndel
parent 406e83ac30
commit 15f418e046
2 changed files with 0 additions and 9 deletions

View file

@ -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);

View file

@ -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 {