[Marble-commits] KDE/kdeedu/marble/src
Jens-Michael Hoffmann
jensmh at gmx.de
Sun Oct 4 21:56:39 CEST 2009
SVN commit 1031374 by jmhoffmann:
krazy fixes: use single quotes for single-char QString operations.
M +1 -1 lib/MarbleControlBox.cpp
M +2 -2 lib/geodata/writers/kml/KmlPointTagWriter.cpp
M +2 -2 plugins/render/weather/WeatherData.cpp
M +2 -2 plugins/render/weather/WeatherItem.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleControlBox.cpp #1031373:1031374
@@ -418,7 +418,7 @@
// TODO read this value from the incoming signal
speedString = QLocale::system().toString( unitSpeed, 'f', 1);
- d->uiWidget.speedLabel->setText( speedString.rightJustified(5) + " " + unitString );
+ d->uiWidget.speedLabel->setText( speedString.rightJustified(5) + ' ' + unitString );
d->uiWidget.longitudeValue->setText( in.lonToString() );
d->uiWidget.latitudeValue->setText( in.latToString() );
--- trunk/KDE/kdeedu/marble/src/lib/geodata/writers/kml/KmlPointTagWriter.cpp #1031373:1031374
@@ -38,11 +38,11 @@
// it is not including the altitude and is adding an extra space after commas
coordinateString += QString::number( point.longitude( GeoDataCoordinates::Degree ), 'f', 10 );
- coordinateString += "," ;
+ coordinateString += ',' ;
coordinateString += QString::number( point.latitude( GeoDataCoordinates::Degree ) , 'f', 10 );
if( point.altitude() ) {
- coordinateString += ",";
+ coordinateString += ',';
coordinateString += QString::number( point.altitude() , 'f' , 10);
}
--- trunk/KDE/kdeedu/marble/src/plugins/render/weather/WeatherData.cpp #1031373:1031374
@@ -585,7 +585,7 @@
QLocale locale = QLocale::system();
// We round to integer.
QString string = locale.toString( floor( windSpeed( unit ) + 0.5 ) );
- string += " ";
+ string += ' ';
switch ( unit ) {
case WeatherData::kph:
string += QObject::tr("km/h");
@@ -744,7 +744,7 @@
QLocale locale = QLocale::system();
// We round to integer.
QString string = locale.toString( pressure( unit ), 'f', 2 );
- string += " ";
+ string += ' ';
switch ( unit ) {
case WeatherData::HectoPascal:
string += tr( "hPa" );
--- trunk/KDE/kdeedu/marble/src/plugins/render/weather/WeatherItem.cpp #1031373:1031374
@@ -123,7 +123,7 @@
.arg( m_currentWeather.pressureDevelopmentString() );
if ( !m_forecastWeather.isEmpty() ) {
- toolTip += "\n";
+ toolTip += '\n';
QDate minDate = QDate::currentDate();
minDate.addDays( -1 );
@@ -134,7 +134,7 @@
&& data.hasValidMinTemperature()
&& data.hasValidMaxTemperature() )
{
- toolTip += "\n";
+ toolTip += '\n';
toolTip += tr( "%1: %2, %3 to %4", "DayOfWeek: Condition, MinTemp to MaxTemp" )
.arg( locale.standaloneDayName( date.dayOfWeek() ) )
.arg( data.conditionString() )
More information about the Marble-commits
mailing list