homescreenapp/widgetplugins/hsshortcutwidgetplugin/src/hsshortcutwidget.cpp
changeset 36 cdae8c6c3876
parent 35 f9ce957a272c
child 39 4e8ebe173323
--- a/homescreenapp/widgetplugins/hsshortcutwidgetplugin/src/hsshortcutwidget.cpp	Fri Mar 19 09:27:44 2010 +0200
+++ b/homescreenapp/widgetplugins/hsshortcutwidgetplugin/src/hsshortcutwidget.cpp	Fri Apr 16 14:54:01 2010 +0300
@@ -16,6 +16,7 @@
 */
 
 #include <QGraphicsLinearLayout>
+#include <QGraphicsSceneMouseEvent>
 
 #include <HbStackedLayout>
 #include <HbIconItem>
@@ -147,7 +148,6 @@
 */
 void HsShortcutWidget::onHide()
 {
-    hide();
 }
 
 /*!
@@ -156,9 +156,11 @@
     Executes configured action
 */
 void HsShortcutWidget::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
-{
-    Q_UNUSED(event)
-    
+{   
+    if (!contains(event->pos())) {
+        return;
+    }
+
     CaEntry *entry = CaService::instance()->getEntry(mMcsId);
     if (!entry) {
         return;
@@ -244,8 +246,8 @@
     itemNotifier->setParent(this);
 
     connect(itemNotifier,
-        SIGNAL(entryChanged(const CaEntry&, ChangeType)),
-        SLOT(onEntryChanged(const CaEntry&, ChangeType)),Qt::QueuedConnection);
+        SIGNAL(entryChanged(CaEntry,ChangeType)),
+        SLOT(onEntryChanged(CaEntry,ChangeType)),Qt::QueuedConnection);
 }
 
 /*!