mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
b0b5f701fc
commit
a1fbffc96c
2 changed files with 21 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue