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

List:       kde-commits
Subject:    branches/KDE/4.6/kdebase/workspace/plasma/desktop/containments/panel
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2011-01-18 23:06:32
Message-ID: 20110118230632.29BE4AC8B7 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1215515 by aseigo:

update the borders when the svg signals; no need to use the theme for this


 M  +2 -7      panel.cpp  
 M  +0 -1      panel.h  


--- branches/KDE/4.6/kdebase/workspace/plasma/desktop/containments/panel/panel.cpp #1215514:1215515
@@ -107,8 +107,6 @@
     setMinimumSize(m_currentSize);
     setMaximumSize(m_currentSize);
 
-    connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, SLOT(themeUpdated()));
-
     connect(this, SIGNAL(appletRemoved(Plasma::Applet*)),
             this, SLOT(appletWasRemoved(Plasma::Applet*)));
     setContainmentType(Containment::PanelContainment);
@@ -169,6 +167,8 @@
 void Panel::backgroundChanged()
 {
     constraintsEvent(Plasma::LocationConstraint);
+    updateBorders(geometry().toRect());
+    update();
 }
 
 void Panel::adjustLastSpace()
@@ -533,11 +533,6 @@
     config.writeEntry("maximumSize", maximumSize());
 }
 
-void Panel::themeUpdated()
-{
-    updateBorders(geometry().toRect());
-}
-
 void Panel::paintInterface(QPainter *painter,
                            const QStyleOptionGraphicsItem *option,
                            const QRect& contentsRect)
--- branches/KDE/4.6/kdebase/workspace/plasma/desktop/containments/panel/panel.h #1215514:1215515
@@ -61,7 +61,6 @@
     void restore(KConfigGroup &group);
 
 private slots:
-    void themeUpdated();
     void backgroundChanged();
     void layoutApplet(Plasma::Applet* applet, const QPointF &pos);
     void appletWasRemoved(Plasma::Applet* applet);
[prev in list] [next in list] [prev in thread] [next in thread] 

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