[Marble-commits] KDE/kdeedu/marble/src/lib
Jens-Michael Hoffmann
jensmh at gmx.de
Wed Apr 14 20:37:37 CEST 2010
SVN commit 1114851 by jmhoffmann:
ViewParams: use propagateGlobalToLocalSettings in setShowClouds instead of duplicated code.
M +1 -11 ViewParams.cpp
--- trunk/KDE/kdeedu/marble/src/lib/ViewParams.cpp #1114850:1114851
@@ -348,17 +348,7 @@
void ViewParams::setShowClouds( bool const showClouds )
{
d->m_globalSettings.setPropertyValue( showCloudsPropertyName, showClouds );
- if ( !d->m_mapTheme )
- return;
-
- GeoSceneSettings * const settings = d->m_mapTheme->settings();
- if ( !settings )
- return;
-
- GeoSceneGroup * const textureLayerSettings = settings->group( "Texture Layers" );
- if ( !textureLayerSettings )
- return;
- textureLayerSettings->setPropertyValue( cloudsLayerName, showClouds );
+ d->propagateGlobalToLocalSettings();
}
Quaternion ViewParams::planetAxisUpdated() const
More information about the Marble-commits
mailing list