2017-07-16 23:04:05 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2017-07-15 23:51:08 +00:00
|
|
|
#ifndef QMLMAPWIDGETHELPER_H
|
|
|
|
#define QMLMAPWIDGETHELPER_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
2017-07-16 21:06:05 +00:00
|
|
|
struct dive_site;
|
|
|
|
|
2017-07-15 23:51:08 +00:00
|
|
|
class MapWidgetHelper : public QObject {
|
|
|
|
|
|
|
|
Q_OBJECT
|
2017-07-16 20:46:50 +00:00
|
|
|
Q_PROPERTY(QObject *map MEMBER m_map)
|
2017-07-15 23:51:08 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
explicit MapWidgetHelper(QObject *parent = NULL);
|
|
|
|
|
2017-07-16 21:06:05 +00:00
|
|
|
void centerOnDiveSite(struct dive_site *);
|
|
|
|
|
2017-07-16 20:46:50 +00:00
|
|
|
private:
|
|
|
|
QObject *m_map;
|
2017-07-15 23:51:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|