mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Good deal of whitespace fixes and code cleanup.
I just went thru all of subsurface code removing some whitespaces issues and trying to make the code prettyer, I also removed a few QString issues.d Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
This commit is contained in:
parent
9ed933d033
commit
1b9a4f2bf8
11 changed files with 50 additions and 131 deletions
|
@ -198,9 +198,8 @@ void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::U
|
|||
lon = lon * 180 / M_PI;
|
||||
lat = lat * 180 / M_PI;
|
||||
}
|
||||
if (!editingDiveCoords) {
|
||||
if (!editingDiveCoords)
|
||||
return;
|
||||
}
|
||||
|
||||
editingDiveCoords->latitude.udeg = lrint(lat * 1000000.0);
|
||||
editingDiveCoords->longitude.udeg = lrint(lon * 1000000.0);
|
||||
|
@ -222,13 +221,10 @@ void GlobeGPS::mousePressEvent(QMouseEvent* event)
|
|||
void GlobeGPS::resizeEvent(QResizeEvent* event)
|
||||
{
|
||||
int size = event->size().width();
|
||||
|
||||
MarbleWidget::resizeEvent(event);
|
||||
|
||||
if (size > 600)
|
||||
messageWidget->setGeometry((size - 600) / 2, 5, 600, 0);
|
||||
else
|
||||
messageWidget->setGeometry(5, 5, size - 10, 0);
|
||||
|
||||
messageWidget->setMaximumHeight(500);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue