Map: don't derive MapLocation from QObject

Map location is
1) A plain value type
2) Never passed to QML

Make it a simple C++ class.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2019-09-01 00:24:18 +02:00 committed by Dirk Hohndel
parent 4eaf6b20be
commit 0c374af176
2 changed files with 1 additions and 4 deletions

View file

@ -10,10 +10,8 @@
#include <QAbstractListModel>
#include <QGeoCoordinate>
class MapLocation : public QObject
class MapLocation
{
Q_OBJECT
public:
explicit MapLocation();
explicit MapLocation(struct dive_site *ds, QGeoCoordinate coord, QString name, bool selected);

View file

@ -164,6 +164,5 @@ void register_qml_types(QQmlEngine *engine)
REGISTER_TYPE(MapWidgetHelper, "MapWidgetHelper");
REGISTER_TYPE(MapLocationModel, "MapLocationModel");
REGISTER_TYPE(MapLocation, "MapLocation");
#endif // not SUBSURFACE_TEST_DATA
}