camerauis/cameraxui/cxui/src/cxuiview.cpp
changeset 42 feebad15db8c
parent 41 67457b2ffb33
child 46 c826656d6714
equal deleted inserted replaced
41:67457b2ffb33 42:feebad15db8c
    84 
    84 
    85     // adjust the timer, and connect it to correct slot
    85     // adjust the timer, and connect it to correct slot
    86     connect(&mHideControlsTimeout, SIGNAL(timeout()), this, SLOT(hideControls()));
    86     connect(&mHideControlsTimeout, SIGNAL(timeout()), this, SLOT(hideControls()));
    87     mHideControlsTimeout.setSingleShot(true);
    87     mHideControlsTimeout.setSingleShot(true);
    88     mHideControlsTimeout.setInterval(CXUI_HIDE_CONTROLS_TIMEOUT);
    88     mHideControlsTimeout.setInterval(CXUI_HIDE_CONTROLS_TIMEOUT);
       
    89     
       
    90     mControlsFeedback.setOwningWindow(mMainWindow);
       
    91     CX_DEBUG_EXIT_FUNCTION();
    89 }
    92 }
    90 
    93 
    91 /*!
    94 /*!
    92 * Is standby mode supported / needed by this view.
    95 * Is standby mode supported / needed by this view.
    93 * Default implementation returns false.
    96 * Default implementation returns false.
   453  */
   456  */
   454 void CxuiView::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
   457 void CxuiView::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
   455 {
   458 {
   456     //! @todo temporary workaround for title bar mouse event handling bug
   459     //! @todo temporary workaround for title bar mouse event handling bug
   457     if (event->type() == QEvent::GraphicsSceneMouseRelease && event->scenePos().y() > 70 &&
   460     if (event->type() == QEvent::GraphicsSceneMouseRelease && event->scenePos().y() > 70 &&
   458         isFeedbackEnabled()) {
   461         isFeedbackEnabled()) {        
   459         // todo: sound disabling doesn't work in orbit yet so don't do feedback on release
   462         mControlsFeedback.setModalities(HbFeedback::Tactile);
   460         // needs to be enabled when orbit support is done
   463         mControlsFeedback.play();
   461         //mControlsFeedback.setModalities(HbFeedback::Tactile);
       
   462         //mControlsFeedback.play();
       
   463         toggleControls();
   464         toggleControls();
   464         event->accept();
   465         event->accept();
   465     }
   466     }
   466 }
   467 }
   467 
   468