Commit a5bdecab authored by Paolo Angelelli's avatar Paolo Angelelli
Browse files

Use Q_LOCATIONLABS_PRIVATE_EXPORT in locationlabs module


Currently it is incorrectly using Q_LOCATION_PRIVATE_EXPORT

Change-Id: Ie7e92fa5ca0379c0bf89055f975da6cf958e049e
Reviewed-by: default avatarBogDan Vatra <bogdan@kdab.com>
parent 54632e0a
Branches
Tags
No related merge requests found
Showing with 67 additions and 6 deletions
/****************************************************************************
**
** Copyright (C) 2018 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 QLOCATIONLABSGLOBAL_P_H
#define QLOCATIONLABSGLOBAL_P_H
#include <QtCore/qglobal.h>
QT_BEGIN_NAMESPACE
#ifndef QT_STATIC
# if defined(QT_BUILD_LOCATIONLABS_LIB)
# define Q_LOCATIONLABS_EXPORT Q_DECL_EXPORT
# else
# define Q_LOCATIONLABS_EXPORT Q_DECL_IMPORT
# endif
#else
# define Q_LOCATIONLABS_EXPORT
#endif
#define Q_LOCATIONLABS_PRIVATE_EXPORT Q_LOCATIONLABS_EXPORT
QT_END_NAMESPACE
#endif // QLOCATIONLABSGLOBAL_P_H
...@@ -48,6 +48,7 @@ ...@@ -48,6 +48,7 @@
// We mean it. // We mean it.
// //
#include <QtLocationLabs/private/qlocationlabsglobal_p.h>
#include <QtLocation/private/qgeomapobject_p.h> #include <QtLocation/private/qgeomapobject_p.h>
#include <QQmlComponent> #include <QQmlComponent>
#include <QVector> #include <QVector>
...@@ -57,7 +58,7 @@ QT_BEGIN_NAMESPACE ...@@ -57,7 +58,7 @@ QT_BEGIN_NAMESPACE
class QQmlDelegateModel; class QQmlDelegateModel;
class QMapObjectViewPrivate; class QMapObjectViewPrivate;
class QQmlChangeSet; class QQmlChangeSet;
class Q_LOCATION_PRIVATE_EXPORT QMapObjectView : public QGeoMapObject class Q_LOCATIONLABS_PRIVATE_EXPORT QMapObjectView : public QGeoMapObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QVariant model READ model WRITE setModel NOTIFY modelChanged) Q_PROPERTY(QVariant model READ model WRITE setModel NOTIFY modelChanged)
......
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
// We mean it. // We mean it.
// //
#include <QtLocationLabs/private/qlocationlabsglobal_p.h>
#include <QtLocation/private/qgeomapobject_p_p.h> #include <QtLocation/private/qgeomapobject_p_p.h>
#include <QPointer> #include <QPointer>
#include <QVector> #include <QVector>
...@@ -58,7 +59,7 @@ QT_BEGIN_NAMESPACE ...@@ -58,7 +59,7 @@ QT_BEGIN_NAMESPACE
class QQmlDelegateModel; class QQmlDelegateModel;
class QGeoMap; class QGeoMap;
class Q_LOCATION_PRIVATE_EXPORT QMapObjectViewPrivate : public QGeoMapObjectPrivate class Q_LOCATIONLABS_PRIVATE_EXPORT QMapObjectViewPrivate : public QGeoMapObjectPrivate
{ {
public: public:
QMapObjectViewPrivate(QGeoMapObject *q); QMapObjectViewPrivate(QGeoMapObject *q);
...@@ -67,7 +68,7 @@ public: ...@@ -67,7 +68,7 @@ public:
virtual QGeoMapObject::Type type() const override final; virtual QGeoMapObject::Type type() const override final;
}; };
class Q_LOCATION_PRIVATE_EXPORT QMapObjectViewPrivateDefault : public QMapObjectViewPrivate class Q_LOCATIONLABS_PRIVATE_EXPORT QMapObjectViewPrivateDefault : public QMapObjectViewPrivate
{ {
public: public:
QMapObjectViewPrivateDefault(QGeoMapObject *q); QMapObjectViewPrivateDefault(QGeoMapObject *q);
......
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
// We mean it. // We mean it.
// //
#include <QtLocation/private/qlocationglobal_p.h> #include <QtLocationLabs/private/qlocationlabsglobal_p.h>
#include <QtQml/qqml.h> #include <QtQml/qqml.h>
#include <QtLocation/private/qgeomapobject_p.h> #include <QtLocation/private/qgeomapobject_p.h>
...@@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE ...@@ -59,7 +59,7 @@ QT_BEGIN_NAMESPACE
class QDeclarativeGeoRoute; class QDeclarativeGeoRoute;
class QGeoRoute; class QGeoRoute;
class QMapRouteObjectPrivate; class QMapRouteObjectPrivate;
class Q_LOCATION_PRIVATE_EXPORT QMapRouteObject : public QGeoMapObject class Q_LOCATIONLABS_PRIVATE_EXPORT QMapRouteObject : public QGeoMapObject
{ {
Q_OBJECT Q_OBJECT
Q_PROPERTY(QDeclarativeGeoRoute *route READ route WRITE setRoute NOTIFY routeChanged) Q_PROPERTY(QDeclarativeGeoRoute *route READ route WRITE setRoute NOTIFY routeChanged)
......
...@@ -48,13 +48,14 @@ ...@@ -48,13 +48,14 @@
// We mean it. // We mean it.
// //
#include <QtLocationLabs/private/qlocationlabsglobal_p.h>
#include <QtLocation/private/qgeomapobject_p_p.h> #include <QtLocation/private/qgeomapobject_p_p.h>
#include <QtLocation/private/qdeclarativegeoroute_p.h> #include <QtLocation/private/qdeclarativegeoroute_p.h>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
class QGeoRoute; class QGeoRoute;
class Q_LOCATION_PRIVATE_EXPORT QMapRouteObjectPrivate : public QGeoMapObjectPrivate class Q_LOCATIONLABS_PRIVATE_EXPORT QMapRouteObjectPrivate : public QGeoMapObjectPrivate
{ {
public: public:
QMapRouteObjectPrivate(QGeoMapObject *q); QMapRouteObjectPrivate(QGeoMapObject *q);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment