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:
parent
4eaf6b20be
commit
0c374af176
@ -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);
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user