camerauis/cameraxui/cxui/src/cxuiscenemodeview.cpp
changeset 24 2094593137f5
parent 21 fa6d9f75d6a6
child 32 5c1e3c6aa4ef
equal deleted inserted replaced
21:fa6d9f75d6a6 24:2094593137f5
   269 * Handle press of ok button.
   269 * Handle press of ok button.
   270 */
   270 */
   271 void CxuiSceneModeView::handleOkButtonPress()
   271 void CxuiSceneModeView::handleOkButtonPress()
   272 {
   272 {
   273     CX_DEBUG_ENTER_FUNCTION();
   273     CX_DEBUG_ENTER_FUNCTION();
       
   274     mScenesList->handleSelectionAccepted();
   274     closeView();
   275     closeView();
   275     CX_DEBUG_EXIT_FUNCTION();
   276     CX_DEBUG_EXIT_FUNCTION();
   276 }
   277 }
   277 
   278 
   278 /*!
   279 /*!
   324 * Closing the view and reactivating camera hw if needed
   325 * Closing the view and reactivating camera hw if needed
   325 */
   326 */
   326 void CxuiSceneModeView::closeView()
   327 void CxuiSceneModeView::closeView()
   327 {
   328 {
   328     CX_DEBUG_ENTER_FUNCTION();
   329     CX_DEBUG_ENTER_FUNCTION();
   329     mScenesList->handleSelectionAccepted();
       
   330     mScenesList->handleClose();
   330     mScenesList->handleClose();
   331     mScenesBackground->setIcon(HbIcon());
   331     mScenesBackground->setIcon(HbIcon());
   332     // Make sure engine prepares for new image/video if necessary
   332     // Make sure engine prepares for new image/video if necessary
   333     mEngine->initMode(mEngine->mode());
   333     mEngine->initMode(mEngine->mode());
   334     emit viewCloseEvent();
   334     emit viewCloseEvent();