summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-02-17 16:22:51 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-03-08 10:00:45 +0000
commit34c474703f6761a2dafecb219da51c66ebd4709a (patch)
tree66fa4786736a62ded4ed1d91afd040340fab63e7 /src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.h
parent0be06411a8a8ce8748faa93b5fa767a58f53cb9e (diff)
downloadqtlocation-34c474703f6761a2dafecb219da51c66ebd4709a.tar.gz
Add itemsoverlay plugin
This change adds a new plugin that does only offer an empty transparent map. The intended usage is to add overlay layers into which to place only map items. Change-Id: I51e64b0354f533bf73480e800e0d5338920a7fc5 Reviewed-by: Thiago Marcos P. Santos <tmpsantos@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.h')
-rw-r--r--src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.h b/src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.h
new file mode 100644
index 00000000..bd53a693
--- /dev/null
+++ b/src/plugins/geoservices/itemsoverlay/qgeomapitemsoverlay.h
@@ -0,0 +1,65 @@
+/****************************************************************************
+**
+** Copyright (C) 2017 The Qt Company Ltd.
+** Contact: http://www.qt.io/licensing/
+**
+** This file is part of the QtLocation module of the Qt Toolkit.
+**
+** $QT_BEGIN_LICENSE:LGPL3$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see http://www.qt.io/terms-conditions. For further
+** information use the contact form at http://www.qt.io/contact-us.
+**
+** GNU Lesser General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU Lesser
+** General Public License version 3 as published by the Free Software
+** Foundation and appearing in the file LICENSE.LGPLv3 included in the
+** packaging of this file. Please review the following information to
+** ensure the GNU Lesser General Public License version 3 requirements
+** will be met: https://www.gnu.org/licenses/lgpl.html.
+**
+** GNU General Public License Usage
+** Alternatively, this file may be used under the terms of the GNU
+** General Public License version 2.0 or later as published by the Free
+** Software Foundation and appearing in the file LICENSE.GPL included in
+** the packaging of this file. Please review the following information to
+** ensure the GNU General Public License version 2.0 requirements will be
+** met: http://www.gnu.org/licenses/gpl-2.0.html.
+**
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+
+#ifndef QGEOMAPITEMSOVERLAY_H
+#define QGEOMAPITEMSOVERLAY_H
+
+#include <QtLocation/private/qgeomap_p.h>
+#include <QtLocation/private/qgeoprojection_p.h>
+
+QT_BEGIN_NAMESPACE
+
+class QGeoMappingManagerEngineItemsOverlay;
+class QGeoMapItemsOverlayPrivate;
+class QGeoMapItemsOverlay: public QGeoMap
+{
+ Q_OBJECT
+ Q_DECLARE_PRIVATE(QGeoMapItemsOverlay)
+public:
+ QGeoMapItemsOverlay(QGeoMappingManagerEngineItemsOverlay *engine, QObject *parent);
+
+ virtual ~QGeoMapItemsOverlay();
+protected:
+ QSGNode *updateSceneGraph(QSGNode *node, QQuickWindow *window) Q_DECL_OVERRIDE;
+
+private:
+ Q_DISABLE_COPY(QGeoMapItemsOverlay)
+};
+
+QT_END_NAMESPACE
+
+#endif