[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/plugins/render/weather
From:       Dennis Nienhüser <earthwings () gentoo ! org>
Date:       2011-01-20 22:06:32
Message-ID: 20110120220632.742F8AC8B8 () svn ! kde ! org
[Download RAW message or body]

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 ) )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic