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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/desktop/applets/tasks
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2010-12-05 20:32:01
Message-ID: 20101205203201.BFCF1AC8A6 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1203974 by aseigo:

connect to the svg, not the theme


 M  +2 -2      abstracttaskitem.cpp  


--- trunk/KDE/kdebase/workspace/plasma/desktop/applets/tasks/abstracttaskitem.cpp #1203973:1203974
@@ -94,8 +94,7 @@
     setFlag(QGraphicsItem::ItemIsFocusable);
 
     checkSettings();
-    connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(syncActiveRect()));
-    connect(Plasma::Theme::defaultTheme(), SIGNAL(themeChanged()), SLOT(queueUpdate()));
+    connect(applet->itemBackground(), SIGNAL(repaintNeeded()), this, SLOT(syncActiveRect()));
     connect(applet, SIGNAL(settingsChanged()), this, SLOT(checkSettings()));
 }
 
@@ -546,6 +545,7 @@
     QFontMetrics fm(font());
     const int minimumWidth = left + 8 + IconTextSpacing + right;
     m_showText = (size().width() >= fm.width("M") * 6 + minimumWidth);
+    queueUpdate();
 }
 
 void AbstractTaskItem::resizeEvent(QGraphicsSceneResizeEvent *event)
[prev in list] [next in list] [prev in thread] [next in thread] 

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