diff options
author | Alex Wilson <alex.wilson@nokia.com> | 2012-05-14 18:37:19 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-05-15 07:39:12 +0200 |
commit | 285a52a7a02cdf18b95df56cd579c7910ec84949 (patch) | |
tree | 6cbf8eaf497f033a959b290e4378d10a6d7de591 /src/imports/location/qdeclarativepolygonmapitem.cpp | |
parent | 42ca2853c8c91a29899d5cb24c2e854f6c366a55 (diff) | |
download | qtlocation-285a52a7a02cdf18b95df56cd579c7910ec84949.tar.gz |
Coding style fixes: whitespace crusades
* Single spaces after keywords and before a bracket/brace
* Binary operator spacing
* Curlies at open of class/function body
* Spacing around some type specifiers/declarations
Change-Id: Ie516283e7a39c7ce83071ea8125774c76db611f5
Reviewed-by: Aaron McCarthy <aaron.mccarthy@nokia.com>
Diffstat (limited to 'src/imports/location/qdeclarativepolygonmapitem.cpp')
-rw-r--r-- | src/imports/location/qdeclarativepolygonmapitem.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/imports/location/qdeclarativepolygonmapitem.cpp b/src/imports/location/qdeclarativepolygonmapitem.cpp index 6e535fa6..6b00076c 100644 --- a/src/imports/location/qdeclarativepolygonmapitem.cpp +++ b/src/imports/location/qdeclarativepolygonmapitem.cpp @@ -213,7 +213,7 @@ void QGeoMapPolygonGeometry::updateScreenPoints(const QGeoMap &map) screenIndices_ << ix[i]; } for (int i = 0; i < (ts.vertices.size()/2*2); i += 2) - screenVertices_ << Point(vx[i], vx[i+1]); + screenVertices_ << Point(vx[i], vx[i + 1]); screenBounds_ = ppi.boundingRect(); } @@ -308,7 +308,7 @@ QQmlListProperty<QDeclarativeCoordinate> QDeclarativePolygonMapItem::declarative void QDeclarativePolygonMapItem::path_append( QQmlListProperty<QDeclarativeCoordinate> *property, QDeclarativeCoordinate *coordinate) { - QDeclarativePolygonMapItem* item = qobject_cast<QDeclarativePolygonMapItem*>(property->object); + QDeclarativePolygonMapItem *item = qobject_cast<QDeclarativePolygonMapItem*>(property->object); item->coordPath_.append(coordinate); item->path_.append(coordinate->coordinate()); @@ -345,7 +345,7 @@ QDeclarativeCoordinate* QDeclarativePolygonMapItem::path_at( void QDeclarativePolygonMapItem::path_clear( QQmlListProperty<QDeclarativeCoordinate> *property) { - QDeclarativePolygonMapItem* item = qobject_cast<QDeclarativePolygonMapItem*>( + QDeclarativePolygonMapItem *item = qobject_cast<QDeclarativePolygonMapItem*>( property->object); qDeleteAll(item->coordPath_); item->coordPath_.clear(); @@ -542,7 +542,7 @@ void QDeclarativePolygonMapItem::dragEnded() if (newCoordinate.isValid()) { qreal firstLongitude = path_.at(0).longitude(); qreal firstLatitude = path_.at(0).latitude(); - for (int i = 0; i<path_.count(); ++i) { + for (int i = 0; i < path_.count(); ++i) { QGeoCoordinate coord = path_.at(i); coord.setLongitude(coord.longitude() + newCoordinate.longitude() - firstLongitude); coord.setLatitude(coord.latitude() + newCoordinate.latitude() - firstLatitude); |