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

List:       kde-commits
Subject:    KDE/kdeplasmoids/applets/lancelot
From:       Ivan Čukić <ivan.cukic+kde () gmail ! com>
Date:       2008-06-29 11:22:55
Message-ID: 1214738575.104081.24117.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 825780 by ivan:

It is alive! No more frequent crashes while browsing applications.



 M  +2 -0      app/src/LancelotApplication.cpp  
 M  +1 -0      app/src/models/Applications.cpp  
 M  +10 -0     app/themes/default/theme.config  
 M  +4 -13     libs/lancelot/widgets/ExtenderButton.cpp  


--- trunk/KDE/kdeplasmoids/applets/lancelot/app/src/LancelotApplication.cpp \
#825779:825780 @@ -51,6 +51,8 @@
 
 bool LancelotApplication::event(QEvent * e)
 {
+    kDebug() << (void *) e;
+    kDebug() << e;
     if (e->type() == QEvent::ApplicationDeactivate) {
         hide(true);
     }
--- trunk/KDE/kdeplasmoids/applets/lancelot/app/src/models/Applications.cpp \
#825779:825780 @@ -77,6 +77,7 @@
             data.name = service->name();
             data.description = service->genericName();
             data.desktopFile = service->entryPath();
+            kDebug() << data.desktopFile;
 
             m_items.append(data);
         } else if (p->isType(KST_KServiceGroup)) {
--- trunk/KDE/kdeplasmoids/applets/lancelot/app/themes/default/theme.config \
#825779:825780 @@ -35,6 +35,16 @@
 background.type=svg
 background.svg=lancelot/action-list-view-items-extenders
 
+[Group-ActionListView-Categories]
+foreground.color.disabled=0,0,0
+foreground.color.active=255,255,255
+background.type=svg
+background.svg=lancelot/action-list-view-categories
+
+[Group-ActionListView-Categories-Extender]
+background.type=svg
+background.svg=lancelot/action-list-view-items-extenders
+
 [Group-ActionListView-Scroll-Up]
 background.type=svg
 background.svg=lancelot/action-list-view-scroll-up
--- trunk/KDE/kdeplasmoids/applets/lancelot/libs/lancelot/widgets/ExtenderButton.cpp \
#825779:825780 @@ -66,27 +66,18 @@
 
     void timerEvent(QTimerEvent * event)
     {
-        ExtenderButton * t_parent = m_parent;
-        kDebug() << " Extender ##### This: " << (void *) this << " m_parent: " << \
                (void *) m_parent << " t_parent: " << (void *) t_parent;
-        kDebug() << " Extender ##### " << m_parent->title();
-        kDebug() << " Extender ##### " << m_parent->isChecked();
-        kDebug() << " Extender ##### " << m_parent->isCheckable();
         if (event->timerId() == timer.timerId()) {
-            kDebug() << " Extender ##1## This: " << (void *) this << " m_parent: " \
<< (void *) m_parent << " t_parent: " << (void *) t_parent;  stopTimer();
-            kDebug() << " Extender ##2## This: " << (void *) this << " m_parent: " \
                << (void *) m_parent << " t_parent: " << (void *) t_parent;
-            m_parent->activate();
-            // The line above somehow changes m_parent even if it is declared \
const... +            // The line above somehow changes m_parent even when it is \
                declared const...
             // So, until I discover what is happening, the following line must \
                remain here
-            m_parent = t_parent;
-            kDebug() << " Extender ##3## This: " << (void *) this << " m_parent: " \
<< (void *) m_parent << " t_parent: " << (void *) t_parent;  m_parent->toggle();
-            kDebug() << " Extender ##4## This: " << (void *) this << " m_parent: " \
<< (void *) m_parent << " t_parent: " << (void *) t_parent;  hide();
             // Qt bug... - element is hidden but doesn't receive hoverLeaveEvent
             hoverLeaveEvent(0);
             m_parent->hoverLeaveEvent(0);
-            kDebug() << " Extender ##5## This: " << (void *) this << " m_parent: " \
<< (void *) m_parent << " t_parent: " << (void *) t_parent; +
+            // Sending the activate signal
+            m_parent->activate();
         }
         QObject::timerEvent(event);
     }


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

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