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

List:       kde-commits
Subject:    kdebase/kicker/applets/menu
From:       Kévin Ottens <ervin () ipsquad ! net>
Date:       2004-06-22 13:49:43
Message-ID: 20040622134943.9A7E29191 () office ! kde ! org
[Download RAW message or body]

CVS commit by ervin: 

The active menu is now correctly refreshed when the palette settings change.
(For example when Kicker appearance is modified)


  M +6 -0      menuapplet.cpp   1.12
  M +1 -0      menuapplet.h   1.3


--- kdebase/kicker/applets/menu/menuapplet.cpp  #1.11:1.12
@@ -318,4 +318,10 @@ void Applet::resizeEvent( QResizeEvent* 
     }
 
+void Applet::paletteChange(const QPalette & /* oldPalette */)
+    {
+        active_menu->hide();
+        active_menu->show();
+    }
+
 void Applet::claimSelection()
     {

--- kdebase/kicker/applets/menu/menuapplet.h  #1.2:1.3
@@ -56,4 +56,5 @@ class Applet : public KPanelApplet, publ
     protected:
         virtual void resizeEvent( QResizeEvent* );
+        virtual void paletteChange(const QPalette& );
     private slots:
         void windowAdded( WId w );


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

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