mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 19:23:24 +00:00
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:
parent
406e83ac30
commit
15f418e046
2 changed files with 0 additions and 9 deletions
|
@ -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);
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue