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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/desktop/shell
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2010-12-15 23:39:47
Message-ID: 20101215233947.D5CEAAC8A8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1206812 by aseigo:

on theme change, check the shadow and reset the unhide trigger
BUG:253538


 M  +6 -2      panelview.cpp  
 M  +1 -0      panelview.h  


--- trunk/KDE/kdebase/workspace/plasma/desktop/shell/panelview.cpp #1206811:1206812
@@ -214,7 +214,6 @@
 #endif
 
         m_shadow = new Plasma::FrameSvg(this);
-        connect(m_shadow, SIGNAL(repaintNeeded()), m_panel, SLOT(checkShadow()), \
Qt::QueuedConnection);  }
 
     void setSvg(const QString &path)
@@ -229,7 +228,6 @@
         }
 
         m_shadow->setElementPrefix("shadow");
-
         adjustMargins(geometry());
     }
 
@@ -374,6 +372,7 @@
             this, SLOT(updatePanelGeometry()));
     connect(screens, SIGNAL(screenAdded(Kephal::Screen *)),
             this, SLOT(updateStruts()));
+    connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), this, \
SLOT(themeChanged()), Qt::QueuedConnection);  }
 
 PanelView::~PanelView()
@@ -438,8 +437,13 @@
     kDebug() << "about to set the containment" << (QObject*)containment;
 
     updateStruts();
+    checkShadow();
+}
 
+void PanelView::themeChanged()
+{
     checkShadow();
+    recreateUnhideTrigger();
 }
 
 void PanelView::checkShadow()
--- trunk/KDE/kdebase/workspace/plasma/desktop/shell/panelview.h #1206811:1206812
@@ -259,6 +259,7 @@
      */
     void checkShadow();
 
+    void themeChanged();
     void setPanelDragPosition(const QPoint &point);
 
 private:


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

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