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

List:       kde-commits
Subject:    kdebase/kicker/taskmanager
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2005-04-15 23:36:06
Message-ID: 20050415233606.48D75492 () office ! kde ! org
[Download RAW message or body]

CVS commit by aseigo: 

attention improvements: don't blank it completely, just paint in mid()
use the same timeouts as in TaskContainer


  M +6 -12     tasklmbmenu.cpp   1.14


--- kdebase/kicker/taskmanager/tasklmbmenu.cpp  #1.13:1.14
@@ -66,9 +66,10 @@ void TaskMenuItem::paint(QPainter *p, co
         p->setPen(QPen(blendColors(cg.background(), cg.text())));
     }
-
-    if (!m_demandsAttention || m_attentionState)
+    else if (m_demandsAttention && !m_attentionState)
     {
-        p->drawText(x, y, w, h, AlignAuto|AlignVCenter|DontClip|ShowPrefix, m_text);
+        p->setPen(cg.mid());
     }
+
+    p->drawText(x, y, w, h, AlignAuto|AlignVCenter|DontClip|ShowPrefix, m_text);
 }
 
@@ -144,5 +145,5 @@ void TaskLMBMenu::fillMenu(TaskList* tas
         m_attentionTimer = new QTimer(this, "AttentionTimer");
         connect(m_attentionTimer, SIGNAL(timeout()), SLOT(attentionTimeout()));
-        m_attentionTimer->start(750, true);
+        m_attentionTimer->start(500, true);
     }
 }
@@ -160,12 +161,5 @@ void TaskLMBMenu::attentionTimeout()
     update();
 
-    if (m_attentionState)
-    {
-        m_attentionTimer->start(750, true);
-    }
-    else
-    {
-        m_attentionTimer->start(250, true);
-    }
+    m_attentionTimer->start(500, true);
 }
 


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

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