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

List:       kde-commits
Subject:    kdetoys/kmoon
From:       Antonio Larrosa Jimenez <larrosa () kde ! org>
Date:       2003-08-27 21:14:15
[Download RAW message or body]

CVS commit by antlarr: 

apply the effect after loading the moon pixmap. Now if your icons are all green, then
you also get a green moon, isn't it cool? :)


  M +6 -2      kmoon.cpp   1.40


--- kdetoys/kmoon/kmoon.cpp  #1.39:1.40
@@ -39,4 +39,5 @@
 #include <kcmdlineargs.h>
 #include <kiconloader.h>
+#include <kiconeffect.h>
 #include <kconfig.h>
 
@@ -239,5 +240,8 @@ QImage MoonWidget::loadMoon(int index)
     if (path.isNull())
         kdFatal() << "cound't find " << filename << ". Exiting.\n";
-    return QImage(path);
+    QImage image(path);
+    KIconEffect iconeffect;
+    image=iconeffect.apply(image, KIcon::Panel, KIcon::DefaultState);
+    return image;
 }
 


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

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