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

List:       kde-commits
Subject:    kdebase/kicker/taskbar
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2005-04-17 1:35:53
Message-ID: 20050417013553.A81523CA () office ! kde ! org
[Download RAW message or body]

CVS commit by aseigo: 

code path for thumbnails in the popups. #ifdef 0'd out for now as the
current thumbnailing sucks too much for this to be of use quite yet, but
it does basically work and shows where this should go in the future.

and the future is composite =)


  M +23 -7     taskcontainer.cpp   1.122


--- kdebase/kicker/taskbar/taskcontainer.cpp  #1.121:1.122
@@ -1349,9 +1349,27 @@ void TaskContainer::showMouseOver()
 
     //try to guess the icon from the classhint
-    QPixmap pixmap = KGlobal::iconLoader()->loadIcon(sid.lower(),
+    QPixmap pixmap;
+#if 0
+    if (TaskbarSettings::showThumbnails() &&
+        m_filteredTasks.count() == 1)
+    {
+        Task* t = m_filteredTasks.first();
+        t->updateThumbnail();
+
+        if (t->hasThumbnail())
+        {
+            pixmap.convertFromImage(t->thumbnail().convertToImage().smoothScale(64, 64));
+        }
+    }
+
+    if (pixmap.isNull())
+#endif
+    {
+        pixmap = KGlobal::iconLoader()->loadIcon(sid.lower(),
                                                      KIcon::Panel,
                                                      KIcon::SizeHuge,
                                                      KIcon::DefaultState,
                                                      0, true);
+    }
 
     // try to load icon via net_wm


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

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