diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 11:50:56 +0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 11:50:56 +0700 |
commit | a27f67c02612791fad73b4e0550d942dc3a5a339 (patch) | |
tree | 4417a2be34c8bcd7c03db23ba5f307ad463657a9 /qt-ui/globe.cpp | |
parent | 3387ccc6f676636fe3fb8b11c8c371f627d74551 (diff) | |
download | subsurface-a27f67c02612791fad73b4e0550d942dc3a5a339.tar.gz |
Whitespace and coding style updates
Another futile attempt to cleanup the code and make coding style and
whitespace consistent. I tried to add a file that describes the key points
of our coding style. I have no illusions that this will help the least
bit...
This commit should ONLY change whitespace
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r-- | qt-ui/globe.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 19a1f53be..4bc946131 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -51,7 +51,7 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0), edit setProjection(Marble::Spherical); setAnimationsEnabled(true); - Q_FOREACH(AbstractFloatItem *i, floatItems()){ + Q_FOREACH(AbstractFloatItem *i, floatItems()) { i->setVisible(false); } @@ -82,13 +82,13 @@ bool GlobeGPS::eventFilter(QObject *obj, QEvent *ev) // This disables the Marble's Context Menu // we need to move this to our 'contextMenuEvent' // if we plan to do a different one in the future. - if (ev->type() == QEvent::ContextMenu){ + if (ev->type() == QEvent::ContextMenu) { contextMenuEvent(static_cast<QContextMenuEvent*>(ev)); return true; } - if (ev->type() == QEvent::MouseButtonPress){ + if (ev->type() == QEvent::MouseButtonPress) { QMouseEvent *e = static_cast<QMouseEvent*>(ev); - if(e->button() == Qt::RightButton) + if (e->button() == Qt::RightButton) return true; } return QObject::eventFilter(obj,ev ); @@ -145,7 +145,7 @@ void GlobeGPS::mouseClicked(qreal lon, qreal lat, GeoDataCoordinates::Unit unit) selectedDiveIds.push_back(idx); } - if(selectedDiveIds.empty()) + if (selectedDiveIds.empty()) return; if (clear) { mainWindow()->dive_list()->unselectDives(); @@ -258,8 +258,8 @@ void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::U /* change everything on the selection. */ int i; struct dive* dive; - for_each_dive(i, dive){ - if(!dive->selected) + for_each_dive(i, dive) { + if (!dive->selected) continue; dive->latitude.udeg = lrint(lat * 1000000.0); dive->longitude.udeg = lrint(lon * 1000000.0); |