mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
2 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Reference in a new issue