KDE/kdebase/workspace/plasma/applets/trash

Marco Martin notmart at gmail.com
Sat Jul 12 22:01:50 CEST 2008


SVN commit 831474 by mart:

connect to click signal when placed in the panel
think it should be backported

CCBUG: 166348
CCMAIL:panel-devel at kde.org


 M  +4 -2      trash.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/trash/trash.cpp #831473:831474
@@ -149,8 +149,7 @@
         if (formFactor() == Plasma::Planar ||
             formFactor() == Plasma::MediaCenter) {
 
-            //in a panel the icon always behaves like a button
-            connect(m_icon, SIGNAL(clicked()), this, SLOT(slotOpen()));
+            connect(m_icon, SIGNAL(activated()), this, SLOT(slotOpen()));
 
             m_icon->setText(i18n("Trash"));
             m_icon->setInfoText(i18np("One item", "%1 items", m_count));
@@ -159,6 +158,9 @@
             //Adding an arbitrary width to make room for a larger count of items
             setMinimumSize(m_icon->sizeFromIconSize(IconSize(KIconLoader::Desktop))+=QSizeF(20,0));
         } else {
+            //in a panel the icon always behaves like a button
+            connect(m_icon, SIGNAL(clicked()), this, SLOT(slotOpen()));
+
             m_icon->setText(0);
             m_icon->setInfoText(0);
             m_showText = false;


More information about the Panel-devel mailing list