phoneuis/bubblemanager2/bubblecore/src/bubbleexpandedhandler.cpp
changeset 45 6b911d05207e
parent 37 ba76fc04e6c2
child 51 f39ed5e045e0
child 65 2a5d4ab426d3
--- a/phoneuis/bubblemanager2/bubblecore/src/bubbleexpandedhandler.cpp	Fri Jun 04 10:19:18 2010 +0100
+++ b/phoneuis/bubblemanager2/bubblecore/src/bubbleexpandedhandler.cpp	Wed Jun 23 18:12:20 2010 +0300
@@ -100,6 +100,8 @@
         mButtonCenter->setIcon( action->icon() );
         connect(mButtonCenter, SIGNAL( clicked() ),
                 action, SLOT( trigger() ) );
+        connect(mButtonCenter, SIGNAL( longPress(QPointF)),
+                action, SLOT( trigger() ) );
         BubbleUtils::setButtonStyleForAction(*mButtonCenter,*action);
         mButtonCenter->show();
     } else  if (actions.count()==2 && mButtonLeft && mButtonRight ) {
@@ -108,6 +110,8 @@
         mButtonLeft->setIcon(action1->icon());
         connect( mButtonLeft, SIGNAL( clicked() ),
                  action1, SLOT( trigger() ) );
+        connect( mButtonLeft, SIGNAL( longPress(QPointF)),
+                 action1, SLOT( trigger() ) );
         BubbleUtils::setButtonStyleForAction(*mButtonLeft,*action1);
         mButtonLeft->show();
         // Right button
@@ -115,6 +119,8 @@
         mButtonRight->setIcon( action2->icon() );
         connect( mButtonRight, SIGNAL( clicked() ),
                  action2, SLOT( trigger() ) );
+        connect( mButtonRight, SIGNAL( longPress(QPointF)),
+                 action2, SLOT( trigger() ) );
         BubbleUtils::setButtonStyleForAction(*mButtonRight,*action2);
         mButtonRight->show();
     }