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

List:       kde-commits
Subject:    kdepim/kmail
From:       Mario Teijeiro Otero <emeteo () escomposlinux ! org>
Date:       2005-04-25 20:33:02
Message-ID: 20050425203302.ACB9C3C3 () office ! kde ! org
[Download RAW message or body]

CVS commit by mteijeiro: 

* take cached icons stuff out of the for curl.


  M +13 -8     objecttreeparser.cpp   1.132


--- kdepim/kmail/objecttreeparser.cpp  #1.131:1.132
@@ -2467,4 +2467,17 @@ QString ObjectTreeParser::quotedHTML( co
     /* calculate line's current quoting depth */
     int actQuoteLevel = -1;
+
+    if ( GlobalSettings::showExpandQuotesMark() ) 
+    {
+      // Cache Icons
+      if ( mCollapseIcon.isEmpty() ) {
+        mCollapseIcon= pngToDataUrl( 
+            KGlobal::instance()->iconLoader()->iconPath( "quotecollapse",0 ));
+      }
+      if ( mExpandIcon.isEmpty() )
+        mExpandIcon= pngToDataUrl( 
+            KGlobal::instance()->iconLoader()->iconPath( "quoteexpand",0 ));
+    }
+
     for (unsigned int p=0; p<line.length(); p++) {
       switch (line[p].latin1()) {
@@ -2505,12 +2518,4 @@ QString ObjectTreeParser::quotedHTML( co
         if ( GlobalSettings::showExpandQuotesMark() ) 
         {
-          // Cache Icons
-          if ( mCollapseIcon.isEmpty() )
-            mCollapseIcon= pngToDataUrl( 
-                KGlobal::instance()->iconLoader()->iconPath( "quotecollapse",0 ));
-          if ( mExpandIcon.isEmpty() )
-            mExpandIcon= pngToDataUrl( 
-                KGlobal::instance()->iconLoader()->iconPath( "quoteexpand",0 ));
-
           if ( !actHidden ) 
           {


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

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