diff -r 5554410e16f5 -r 36d7ded3ca23 mmsharing/livecommsui/lcui/src/lcview.cpp --- a/mmsharing/livecommsui/lcui/src/lcview.cpp Tue Jul 06 14:13:16 2010 +0300 +++ b/mmsharing/livecommsui/lcui/src/lcview.cpp Wed Aug 18 09:46:00 2010 +0300 @@ -667,15 +667,14 @@ void LcView::gestureEvent(QGestureEvent *event) { LC_QDEBUG( "livecomms [UI] -> LcView::gestureEvent()" ) - if(HbTapGesture *tap = static_cast(event->gesture(Qt::TapGesture))) { - if ((tap->state() == Qt::GestureUpdated) && - (tap->tapStyleHint() == HbTapGesture::TapAndHold)) { + if( event ){ + // unsafe typecast but no other way to access tapstylehint from orbit + HbTapGesture *tap = static_cast(event->gesture(Qt::TapGesture)); + Qt::GestureState tapState = tap->state(); + HbTapGesture::TapStyleHint hint = tap->tapStyleHint(); + if ( tapState == Qt::GestureUpdated && hint == HbTapGesture::TapAndHold ) { gestureLongPress(translatePointForOrientation(tap->position())); - } - - else if ( (tap->state() == Qt::GestureFinished ) && - ( tap->tapStyleHint() == HbTapGesture::Tap)) { - + } else if ( tapState == Qt::GestureFinished && hint == HbTapGesture::Tap ) { gestureShortPress(); } } @@ -755,8 +754,8 @@ // mItemContextMenu is destroyed upon close mItemContextMenu = new HbMenu(); - mItemContextMenu->setDismissPolicy(HbDialog::TapOutside); - mItemContextMenu->setTimeout(HbDialog::ContextMenuTimeout); + mItemContextMenu->setDismissPolicy(HbMenu::TapAnywhere); + mItemContextMenu->setTimeout(HbMenu::ContextMenuTimeout); mItemContextMenu->setAttribute(Qt::WA_DeleteOnClose); LC_QDEBUG( "livecomms [UI] <- LcView::createContextMenu()" )