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

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/applets/icon
From:       Marco Martin <notmart () gmail ! com>
Date:       2008-01-11 20:31:42
Message-ID: 1200083502.022455.30471.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 760055 by mart:

use the new activated() signal from Plasma::Icon

 M  +1 -12     icon.cpp  


--- trunk/KDE/kdebase/workspace/plasma/applets/icon/icon.cpp #760054:760055
@@ -63,7 +63,7 @@
     KConfigGroup cg = config();
     //setMinimumSize(QSize(48,68));
 
-    connectMouseSlots();
+    connect(m_icon, SIGNAL(activated()), this, SLOT(openUrl()));
     setUrl(cg.readEntry("Url", m_url));
     setDrawStandardBackground(false);
     setDisplayLines(2);
@@ -398,16 +398,5 @@
     }
 }
 
-void IconApplet::connectMouseSlots()
-{
-    if (KGlobalSettings::singleClick()) {
-        //kDebug() << "Single-Click initialized.";
-        connect(m_icon, SIGNAL(clicked()), this, SLOT(openUrl()));
-    } else {
-        //kDebug() << "Double-Click initialized.";
-        connect(m_icon, SIGNAL(doubleClicked()), this, SLOT(openUrl()));
-    }
-}
-
 #include "icon.moc"
 
[prev in list] [next in list] [prev in thread] [next in thread] 

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