summaryrefslogtreecommitdiff
path: root/src/imports/location/qdeclarativegeomappolylineobject_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/location/qdeclarativegeomappolylineobject_p.h')
-rw-r--r--src/imports/location/qdeclarativegeomappolylineobject_p.h103
1 files changed, 0 insertions, 103 deletions
diff --git a/src/imports/location/qdeclarativegeomappolylineobject_p.h b/src/imports/location/qdeclarativegeomappolylineobject_p.h
deleted file mode 100644
index 7ab22c35..00000000
--- a/src/imports/location/qdeclarativegeomappolylineobject_p.h
+++ /dev/null
@@ -1,103 +0,0 @@
-/****************************************************************************
-**
-** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
-** All rights reserved.
-** Contact: Nokia Corporation (qt-info@nokia.com)
-**
-** This file is part of the Qt Mobility Components.
-**
-** $QT_BEGIN_LICENSE:LGPL$
-** GNU Lesser General Public License Usage
-** 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, Nokia gives you certain additional
-** rights. These rights are described in the Nokia 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.
-**
-** Other Usage
-** Alternatively, this file may be used in accordance with the terms and
-** conditions contained in a signed written agreement between you and Nokia.
-**
-**
-**
-**
-**
-** $QT_END_LICENSE$
-**
-****************************************************************************/
-
-#ifndef QDECLARATIVEGEOMAPPOLYLINEOBJECT_H
-#define QDECLARATIVEGEOMAPPOLYLINEOBJECT_H
-
-#include "qdeclarativegeomapobject_p.h"
-#include "qdeclarativecoordinate_p.h"
-#include "qdeclarativegeomapobjectborder_p.h"
-#include "qgeomappolylineobject.h"
-
-#include <QDeclarativeListProperty>
-
-class QColor;
-class QBrush;
-
-QT_BEGIN_NAMESPACE
-
-class QDeclarativeGeoMapPolylineObject : public QDeclarativeGeoMapObject
-{
- Q_OBJECT
-
- Q_PROPERTY(QDeclarativeListProperty<QDeclarativeCoordinate> path READ declarativePath NOTIFY pathChanged)
- Q_PROPERTY(QDeclarativeGeoMapObjectBorder* border READ border CONSTANT)
-
-public:
- QDeclarativeGeoMapPolylineObject(QSGItem *parent = 0);
- ~QDeclarativeGeoMapPolylineObject();
-
- Q_INVOKABLE void addCoordinate(QDeclarativeCoordinate* coordinate);
- Q_INVOKABLE void removeCoordinate(QDeclarativeCoordinate* coordinate);
- Q_INVOKABLE void clearCoordinates();
-
- // From QDeclarativeParserStatus
- virtual void classBegin() {}
- virtual void componentComplete();
-
- QDeclarativeListProperty<QDeclarativeCoordinate> declarativePath();
- QDeclarativeGeoMapObjectBorder* border();
-
-Q_SIGNALS:
- void pathChanged();
-
-private Q_SLOTS:
- void borderColorChanged(const QColor &color);
- void borderWidthChanged(int width);
-
-private:
- static void path_append(QDeclarativeListProperty<QDeclarativeCoordinate> *prop, QDeclarativeCoordinate *coordinate);
- static int path_count(QDeclarativeListProperty<QDeclarativeCoordinate> *prop);
- static QDeclarativeCoordinate* path_at(QDeclarativeListProperty<QDeclarativeCoordinate> *prop, int index);
- static void path_clear(QDeclarativeListProperty<QDeclarativeCoordinate> *prop);
- void pathPropertyChanged();
-
- QPointer<QGeoMapPolylineObject> polyline_;
- QList<QDeclarativeCoordinate*> path_;
- QDeclarativeGeoMapObjectBorder border_;
- bool componentCompleted_;
-};
-
-QT_END_NAMESPACE
-
-QML_DECLARE_TYPE(QT_PREPEND_NAMESPACE(QDeclarativeGeoMapPolylineObject));
-
-#endif