summaryrefslogtreecommitdiff
path: root/src/location/declarativemaps
diff options
context:
space:
mode:
authorKevin Funk <kfunk@kde.org>2018-01-31 14:34:16 +0100
committerKevin Funk <kevin.funk@kdab.com>2018-02-05 13:14:46 +0000
commitb4807a11e816feaa3b541b4e4b02f77c1fafbf48 (patch)
tree8bbbb202dfd8e283b7bdfeadd1396757669e7f04 /src/location/declarativemaps
parent4ecd38a9371ceb79abe162c39de6082e112f1053 (diff)
downloadqtlocation-b4807a11e816feaa3b541b4e4b02f77c1fafbf48.tar.gz
Replace Q_DECL_OVERRIDE with override
Change-Id: Iaa670de181255ea570fcf7bcbe465987ef7fc2fc Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/location/declarativemaps')
-rw-r--r--src/location/declarativemaps/mapitemviewdelegateincubator_p.h2
-rw-r--r--src/location/declarativemaps/qdeclarativecirclemapitem_p.h16
-rw-r--r--src/location/declarativemaps/qdeclarativegeomap_p.h22
-rw-r--r--src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h6
-rw-r--r--src/location/declarativemaps/qdeclarativegeomapquickitem_p.h18
-rw-r--r--src/location/declarativemaps/qdeclarativepolygonmapitem_p.h16
-rw-r--r--src/location/declarativemaps/qdeclarativepolylinemapitem_p.h16
-rw-r--r--src/location/declarativemaps/qdeclarativerectanglemapitem_p.h16
-rw-r--r--src/location/declarativemaps/qdeclarativeroutemapitem_p.h2
9 files changed, 57 insertions, 57 deletions
diff --git a/src/location/declarativemaps/mapitemviewdelegateincubator_p.h b/src/location/declarativemaps/mapitemviewdelegateincubator_p.h
index f03ae405..6ee9f6af 100644
--- a/src/location/declarativemaps/mapitemviewdelegateincubator_p.h
+++ b/src/location/declarativemaps/mapitemviewdelegateincubator_p.h
@@ -62,7 +62,7 @@ public:
MapItemViewDelegateIncubator(QDeclarativeGeoMapItemView *view, QDeclarativeGeoMapItemViewItemData *itemData, bool batched = true);
protected:
- void statusChanged(Status status) Q_DECL_OVERRIDE;
+ void statusChanged(Status status) override;
private:
QDeclarativeGeoMapItemView *m_view;
diff --git a/src/location/declarativemaps/qdeclarativecirclemapitem_p.h b/src/location/declarativemaps/qdeclarativecirclemapitem_p.h
index c117b444..bb359ee3 100644
--- a/src/location/declarativemaps/qdeclarativecirclemapitem_p.h
+++ b/src/location/declarativemaps/qdeclarativecirclemapitem_p.h
@@ -78,8 +78,8 @@ public:
explicit QDeclarativeCircleMapItem(QQuickItem *parent = 0);
~QDeclarativeCircleMapItem();
- virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) Q_DECL_OVERRIDE;
- virtual QSGNode *updateMapItemPaintNode(QSGNode *, UpdatePaintNodeData *) Q_DECL_OVERRIDE;
+ virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) override;
+ virtual QSGNode *updateMapItemPaintNode(QSGNode *, UpdatePaintNodeData *) override;
QGeoCoordinate center();
void setCenter(const QGeoCoordinate &center);
@@ -92,9 +92,9 @@ public:
QDeclarativeMapLineProperties *border();
- bool contains(const QPointF &point) const Q_DECL_OVERRIDE;
- const QGeoShape &geoShape() const Q_DECL_OVERRIDE;
- QGeoMap::ItemType itemType() const Q_DECL_OVERRIDE;
+ bool contains(const QPointF &point) const override;
+ const QGeoShape &geoShape() const override;
+ QGeoMap::ItemType itemType() const override;
static bool crossEarthPole(const QGeoCoordinate &center, qreal distance);
static void calculatePeripheralPoints(QList<QGeoCoordinate> &path, const QGeoCoordinate &center,
@@ -108,12 +108,12 @@ Q_SIGNALS:
void colorChanged(const QColor &color);
protected:
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
- void updatePolish() Q_DECL_OVERRIDE;
+ void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
+ void updatePolish() override;
protected Q_SLOTS:
void markSourceDirtyAndUpdate();
- virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) Q_DECL_OVERRIDE;
+ virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) override;
private:
void updateCirclePath();
diff --git a/src/location/declarativemaps/qdeclarativegeomap_p.h b/src/location/declarativemaps/qdeclarativegeomap_p.h
index 27ee9822..508a9ed5 100644
--- a/src/location/declarativemaps/qdeclarativegeomap_p.h
+++ b/src/location/declarativemaps/qdeclarativegeomap_p.h
@@ -222,23 +222,23 @@ Q_SIGNALS:
void mapObjectsChanged();
protected:
- void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE ;
- void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE ;
- void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE ;
- void mouseUngrabEvent() Q_DECL_OVERRIDE ;
- void touchUngrabEvent() Q_DECL_OVERRIDE;
- void touchEvent(QTouchEvent *event) Q_DECL_OVERRIDE ;
+ void mousePressEvent(QMouseEvent *event) override ;
+ void mouseMoveEvent(QMouseEvent *event) override ;
+ void mouseReleaseEvent(QMouseEvent *event) override ;
+ void mouseUngrabEvent() override ;
+ void touchUngrabEvent() override;
+ void touchEvent(QTouchEvent *event) override ;
#if QT_CONFIG(wheelevent)
- void wheelEvent(QWheelEvent *event) Q_DECL_OVERRIDE ;
+ void wheelEvent(QWheelEvent *event) override ;
#endif
- bool childMouseEventFilter(QQuickItem *item, QEvent *event) Q_DECL_OVERRIDE;
+ bool childMouseEventFilter(QQuickItem *item, QEvent *event) override;
bool sendMouseEvent(QMouseEvent *event);
bool sendTouchEvent(QTouchEvent *event);
- void componentComplete() Q_DECL_OVERRIDE;
- QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) Q_DECL_OVERRIDE;
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
+ void componentComplete() override;
+ QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;
+ void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
void setError(QGeoServiceProvider::Error error, const QString &errorString);
void initialize();
diff --git a/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h b/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h
index 0d7f7a20..ade05c22 100644
--- a/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h
+++ b/src/location/declarativemaps/qdeclarativegeomapcopyrightsnotice_p.h
@@ -92,9 +92,9 @@ signals:
void styleSheetChanged(const QString &styleSheet);
protected:
- void paint(QPainter *painter) Q_DECL_OVERRIDE;
- void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
- void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
+ void paint(QPainter *painter) override;
+ void mousePressEvent(QMouseEvent *event) override;
+ void mouseReleaseEvent(QMouseEvent *event) override;
void rasterizeHtmlAndUpdate();
void connectMap();
diff --git a/src/location/declarativemaps/qdeclarativegeomapquickitem_p.h b/src/location/declarativemaps/qdeclarativegeomapquickitem_p.h
index 2035a997..3e757371 100644
--- a/src/location/declarativemaps/qdeclarativegeomapquickitem_p.h
+++ b/src/location/declarativemaps/qdeclarativegeomapquickitem_p.h
@@ -65,7 +65,7 @@ public:
QMapQuickItemMatrix4x4(QObject *parent = nullptr);
void setMatrix(const QMatrix4x4& matrix);
- void applyTo(QMatrix4x4 *matrix) const Q_DECL_OVERRIDE;
+ void applyTo(QMatrix4x4 *matrix) const override;
QMatrix4x4 m_matrix;
};
@@ -82,7 +82,7 @@ public:
explicit QDeclarativeGeoMapQuickItem(QQuickItem *parent = 0);
~QDeclarativeGeoMapQuickItem();
- virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) Q_DECL_OVERRIDE;
+ virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) override;
void setCoordinate(const QGeoCoordinate &coordinate);
QGeoCoordinate coordinate();
@@ -96,8 +96,8 @@ public:
void setZoomLevel(qreal zoomLevel);
qreal zoomLevel() const;
- const QGeoShape &geoShape() const Q_DECL_OVERRIDE;
- QGeoMap::ItemType itemType() const Q_DECL_OVERRIDE;
+ const QGeoShape &geoShape() const override;
+ QGeoMap::ItemType itemType() const override;
Q_SIGNALS:
void coordinateChanged();
@@ -106,13 +106,13 @@ Q_SIGNALS:
void zoomLevelChanged();
protected:
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
- void updatePolish() Q_DECL_OVERRIDE;
- bool childMouseEventFilter(QQuickItem *item, QEvent *event) Q_DECL_OVERRIDE;
+ void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
+ void updatePolish() override;
+ bool childMouseEventFilter(QQuickItem *item, QEvent *event) override;
protected Q_SLOTS:
- virtual void afterChildrenChanged() Q_DECL_OVERRIDE;
- virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) Q_DECL_OVERRIDE;
+ virtual void afterChildrenChanged() override;
+ virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) override;
private:
qreal scaleFactor();
diff --git a/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h b/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h
index a928ae39..c49495ab 100644
--- a/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h
+++ b/src/location/declarativemaps/qdeclarativepolygonmapitem_p.h
@@ -89,9 +89,9 @@ public:
explicit QDeclarativePolygonMapItem(QQuickItem *parent = 0);
~QDeclarativePolygonMapItem();
- virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) Q_DECL_OVERRIDE;
+ virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) override;
//from QuickItem
- virtual QSGNode *updateMapItemPaintNode(QSGNode *, UpdatePaintNodeData *) Q_DECL_OVERRIDE;
+ virtual QSGNode *updateMapItemPaintNode(QSGNode *, UpdatePaintNodeData *) override;
Q_INVOKABLE void addCoordinate(const QGeoCoordinate &coordinate);
Q_INVOKABLE void removeCoordinate(const QGeoCoordinate &coordinate);
@@ -104,22 +104,22 @@ public:
QDeclarativeMapLineProperties *border();
- bool contains(const QPointF &point) const Q_DECL_OVERRIDE;
- const QGeoShape &geoShape() const Q_DECL_OVERRIDE;
- QGeoMap::ItemType itemType() const Q_DECL_OVERRIDE;
+ bool contains(const QPointF &point) const override;
+ const QGeoShape &geoShape() const override;
+ QGeoMap::ItemType itemType() const override;
Q_SIGNALS:
void pathChanged();
void colorChanged(const QColor &color);
protected:
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
- void updatePolish() Q_DECL_OVERRIDE;
+ void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
+ void updatePolish() override;
protected Q_SLOTS:
void markSourceDirtyAndUpdate();
void handleBorderUpdated();
- virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) Q_DECL_OVERRIDE;
+ virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) override;
private:
void regenerateCache();
diff --git a/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h b/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
index 6b3c42e9..8a5c1122 100644
--- a/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
+++ b/src/location/declarativemaps/qdeclarativepolylinemapitem_p.h
@@ -126,9 +126,9 @@ public:
explicit QDeclarativePolylineMapItem(QQuickItem *parent = 0);
~QDeclarativePolylineMapItem();
- virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) Q_DECL_OVERRIDE;
+ virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) override;
//from QuickItem
- virtual QSGNode *updateMapItemPaintNode(QSGNode *, UpdatePaintNodeData *) Q_DECL_OVERRIDE;
+ virtual QSGNode *updateMapItemPaintNode(QSGNode *, UpdatePaintNodeData *) override;
Q_INVOKABLE int pathLength() const;
Q_INVOKABLE void addCoordinate(const QGeoCoordinate &coordinate);
@@ -143,9 +143,9 @@ public:
virtual void setPath(const QJSValue &value);
Q_INVOKABLE void setPath(const QGeoPath &path);
- bool contains(const QPointF &point) const Q_DECL_OVERRIDE;
- const QGeoShape &geoShape() const Q_DECL_OVERRIDE;
- QGeoMap::ItemType itemType() const Q_DECL_OVERRIDE;
+ bool contains(const QPointF &point) const override;
+ const QGeoShape &geoShape() const override;
+ QGeoMap::ItemType itemType() const override;
QDeclarativeMapLineProperties *line();
@@ -153,14 +153,14 @@ Q_SIGNALS:
void pathChanged();
protected:
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
+ void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
void setPathFromGeoList(const QList<QGeoCoordinate> &path);
- void updatePolish() Q_DECL_OVERRIDE;
+ void updatePolish() override;
protected Q_SLOTS:
void markSourceDirtyAndUpdate();
void updateAfterLinePropertiesChanged();
- virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) Q_DECL_OVERRIDE;
+ virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) override;
private:
void regenerateCache();
diff --git a/src/location/declarativemaps/qdeclarativerectanglemapitem_p.h b/src/location/declarativemaps/qdeclarativerectanglemapitem_p.h
index ca7ca9b7..1642d700 100644
--- a/src/location/declarativemaps/qdeclarativerectanglemapitem_p.h
+++ b/src/location/declarativemaps/qdeclarativerectanglemapitem_p.h
@@ -73,9 +73,9 @@ public:
explicit QDeclarativeRectangleMapItem(QQuickItem *parent = 0);
~QDeclarativeRectangleMapItem();
- virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) Q_DECL_OVERRIDE;
+ virtual void setMap(QDeclarativeGeoMap *quickMap, QGeoMap *map) override;
//from QuickItem
- virtual QSGNode *updateMapItemPaintNode(QSGNode *, UpdatePaintNodeData *) Q_DECL_OVERRIDE;
+ virtual QSGNode *updateMapItemPaintNode(QSGNode *, UpdatePaintNodeData *) override;
QGeoCoordinate topLeft();
void setTopLeft(const QGeoCoordinate &center);
@@ -88,9 +88,9 @@ public:
QDeclarativeMapLineProperties *border();
- bool contains(const QPointF &point) const Q_DECL_OVERRIDE;
- const QGeoShape &geoShape() const Q_DECL_OVERRIDE;
- QGeoMap::ItemType itemType() const Q_DECL_OVERRIDE;
+ bool contains(const QPointF &point) const override;
+ const QGeoShape &geoShape() const override;
+ QGeoMap::ItemType itemType() const override;
Q_SIGNALS:
void topLeftChanged(const QGeoCoordinate &topLeft);
@@ -99,12 +99,12 @@ Q_SIGNALS:
protected:
void updatePath();
- void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
- void updatePolish() Q_DECL_OVERRIDE;
+ void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) override;
+ void updatePolish() override;
protected Q_SLOTS:
void markSourceDirtyAndUpdate();
- virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) Q_DECL_OVERRIDE;
+ virtual void afterViewportChanged(const QGeoMapViewportChangeEvent &event) override;
private:
QGeoRectangle rectangle_;
diff --git a/src/location/declarativemaps/qdeclarativeroutemapitem_p.h b/src/location/declarativemaps/qdeclarativeroutemapitem_p.h
index ad959837..a0b171b0 100644
--- a/src/location/declarativemaps/qdeclarativeroutemapitem_p.h
+++ b/src/location/declarativemaps/qdeclarativeroutemapitem_p.h
@@ -79,7 +79,7 @@ private slots:
void updateRoutePath();
protected:
- void setPath(const QJSValue &value) Q_DECL_OVERRIDE;
+ void setPath(const QJSValue &value) override;
private:
QDeclarativeGeoRoute *route_;