diff options
author | Fabian Bumberger <fbumberger@rim.com> | 2013-11-20 19:23:47 +0100 |
---|---|---|
committer | Fabian Bumberger <fbumberger@rim.com> | 2014-01-28 16:57:17 +0100 |
commit | 40523fde410adf74d021bec4869e9bf6a7aef39c (patch) | |
tree | ceba858c1e7795665ec976cb676eafb17f8d4d1f /src/imports/location/mapnode_sg_p.h | |
parent | c056043611675eb894a6d4417324438b28fd952c (diff) |
Prepare to get rid of the Qt3D dependency
This patch puts most Qt3D dependencies in ifdefs and thus is the
first step to eliminate the dependency.
Change-Id: Ifa3c3213aacd8dd50aec18fedd4df3d3c34671e8
Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/imports/location/mapnode_sg_p.h')
-rw-r--r-- | src/imports/location/mapnode_sg_p.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/src/imports/location/mapnode_sg_p.h b/src/imports/location/mapnode_sg_p.h new file mode 100644 index 00000000..02c2ddd9 --- /dev/null +++ b/src/imports/location/mapnode_sg_p.h @@ -0,0 +1,68 @@ +/**************************************************************************** +** +** Copyright (C) 2014 BlackBerry Limited and/or its subsidiary(-ies). +** Contact: http://www.qt-project.org/legal +** +** This file is part of the QtLocation module of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:LGPL$ +** 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 Digia. For licensing terms and +** conditions see http://qt.digia.com/licensing. For further information +** use the contact form at http://qt.digia.com/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 2.1 as published by the Free Software +** Foundation and appearing in the file LICENSE.LGPL included in the +** packaging of this file. Please review the following information to +** ensure the GNU Lesser General Public License version 2.1 requirements +** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. +** +** In addition, as a special exception, Digia gives you certain additional +** rights. These rights are described in the Digia Qt LGPL Exception +** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. +** +** GNU General Public License Usage +** Alternatively, this file may be used under the terms of the GNU +** General Public License version 3.0 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 3.0 requirements will be +** met: http://www.gnu.org/copyleft/gpl.html. +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +#ifndef MAPNODE_SG_P_H +#define MAPNODE_SG_P_H + +#include <QSGNode> + +QT_BEGIN_NAMESPACE + +class QGeoMap; + +class MapNode : public QSGNode +{ +public: + explicit MapNode(QGeoMap *m_map); + ~MapNode(); + + void setSize(const QSize &size); + QSize size() const { return m_size; } + void update(); + +private: + QGeoMap *m_map; + QSize m_size; +}; + +QT_END_NAMESPACE + +#endif // MAPNODE_SG_P_H |