[Marble-commits] KDE/kdeedu/marble/src/plugins/render/weather

Dennis Nienhüser earthwings at gentoo.org
Thu Jan 20 23:06:32 CET 2011


SVN commit 1216035 by nienhueser:

No need to load this .svg at application startup.

 M  +1 -3      WeatherItem.cpp  


--- trunk/KDE/kdeedu/marble/src/plugins/render/weather/WeatherItem.cpp #1216034:1216035
@@ -166,6 +166,7 @@
         if ( isWindDirectionShown() ) {
             QString windDirectionString = m_currentWeather.windDirectionString();
             QSizeF windDirectionImageSize;
+            QSvgRenderer s_windIcons( MarbleDirs::path( "weather/wind-arrows.svgz" ) );
             QSizeF windDirectionSizeF = s_windIcons.boundsOnElement( windDirectionString ).size();
             double windDirectionRatio = windDirectionSizeF.width() / windDirectionSizeF.height();
             if ( windDirectionRatio >= imageSizeRatio ) {
@@ -268,7 +269,6 @@
     QHash<QString,QVariant> m_settings;
     
     static QFont s_font;
-    static QSvgRenderer s_windIcons;
 
     // Labels and Layout
     // We are not the owner of these items.
@@ -286,8 +286,6 @@
     QFont WeatherItemPrivate::s_font = QFont( "Sans Serif", 8 );
 #endif
 
-QSvgRenderer WeatherItemPrivate::s_windIcons( MarbleDirs::path( "weather/wind-arrows.svgz" ) );
-
 WeatherItem::WeatherItem( QObject *parent )
     : AbstractDataPluginItem( parent ),
     d( new WeatherItemPrivate( this ) )


More information about the Marble-commits mailing list