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

List:       kde-commits
Subject:    kdeextragear-3/digikamimageplugins/charcoal (silent)
From:       Gilles Caulier <caulier.gilles () free ! fr>
Date:       2004-10-01 7:49:28
Message-ID: 20041001074928.D747B996F () office ! kde ! org
[Download RAW message or body]

CVS commit by cgilles: 

CVS_SILENT
Fixed kde 3.1 compatibilty


  M +8 -4      imageeffect_charcoal.cpp   1.13


--- kdeextragear-3/digikamimageplugins/charcoal/imageeffect_charcoal.cpp  #1.12:1.13
@@ -291,11 +291,11 @@ QImage ImageEffect_Charcoal::charcoal(QI
 {
     if (m_cancel) return src;
-    m_progressBar->setValue(10); 
+    m_progressBar->setValue(0); 
     kapp->processEvents();    
     
-    // Detects edges in an image using pixel neighborhoods and an edge
+    // Detects edges in the image using pixel neighborhoods and an edge
     // detection mask.
     QImage img(KImageEffect::edge(src, pencil));
-    m_progressBar->setValue(20); 
+    m_progressBar->setValue(10); 
     kapp->processEvents();    
            
@@ -304,6 +304,10 @@ QImage ImageEffect_Charcoal::charcoal(QI
     kapp->processEvents();    
     
-    // Blurs an image by convolving pixel neighborhoods.
+    // Blurs the image by convolving pixel neighborhoods.
+#if KDE_VERSION >= 0x30200
     img = KImageEffect::blur(img, pencil, smooth);
+#else
+    img = KImageEffect::blur(img, pencil);
+#endif
     m_progressBar->setValue(30); 
     kapp->processEvents();    


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

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