summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mapwidget.h
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-07-15 01:26:13 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 07:31:11 -0700
commita1fbffc96c911bccd52a3821444509d08fefeb38 (patch)
tree227d691ea1f5aa725374a1661099b66aa72133cd /desktop-widgets/mapwidget.h
parentb0b5f701fcda276d1ff1c7a181b2ac017f2485c8 (diff)
downloadsubsurface-a1fbffc96c911bccd52a3821444509d08fefeb38.tar.gz
mapwidget: add placeholder centerOnDiveSite() public slot
This is WIP and would be developed futher, so that the new map widget can center on a divesite location. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'desktop-widgets/mapwidget.h')
-rw-r--r--desktop-widgets/mapwidget.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop-widgets/mapwidget.h b/desktop-widgets/mapwidget.h
index c1d55ae91..d2aefb687 100644
--- a/desktop-widgets/mapwidget.h
+++ b/desktop-widgets/mapwidget.h
@@ -3,17 +3,25 @@
#include <QQuickWidget>
+#include "core/divesite.h"
+
class QResizeEvent;
class QQuickItem;
+struct dive_site;
class MapWidget : public QQuickWidget {
+ Q_OBJECT
+
public:
MapWidget(QWidget *parent = NULL);
~MapWidget();
static MapWidget *instance();
+public slots:
+ void centerOnDiveSite(struct dive_site *);
+
private:
static MapWidget *m_instance;
QQuickItem *m_rootItem;