camerauis/cameraxui/cxui/src/cxuiview.cpp
changeset 48 42ba2d16bf40
parent 37 64817133cd1d
child 56 01e205c615b9
--- a/camerauis/cameraxui/cxui/src/cxuiview.cpp	Tue Jul 06 14:04:02 2010 +0300
+++ b/camerauis/cameraxui/cxui/src/cxuiview.cpp	Wed Aug 18 09:37:18 2010 +0300
@@ -86,6 +86,9 @@
     connect(&mHideControlsTimeout, SIGNAL(timeout()), this, SLOT(hideControls()));
     mHideControlsTimeout.setSingleShot(true);
     mHideControlsTimeout.setInterval(CXUI_HIDE_CONTROLS_TIMEOUT);
+    
+    mControlsFeedback.setOwningWindow(mMainWindow);
+    CX_DEBUG_EXIT_FUNCTION();
 }
 
 /*!
@@ -265,19 +268,8 @@
         mHideControlsTimeout.stop();
     }
 
-    // Hide title bar and status bar.
-    //!@todo: View flags property is missing from HbView, so can't set these in DocML.
-    HbView::HbViewFlags flags(HbView::ViewTitleBarTransparent
-                            | HbView::ViewTitleBarFloating
-                            | HbView::ViewTitleBarHidden
-                            | HbView::ViewStatusBarTransparent
-                            | HbView::ViewStatusBarFloating
-                            | HbView::ViewStatusBarHidden);
-    setViewFlags(flags);
-    //!@todo: Once the flags are defined in DocML, we can just use these convenience functions
-    //        to hide the title bar and status bar here.
-    //setTitleBarVisible(false);
-    //setStatusBarVisible(false);
+    setTitleBarVisible(false);
+    setStatusBarVisible(false);
 
     hideZoom();
 
@@ -455,11 +447,9 @@
 {
     //! @todo temporary workaround for title bar mouse event handling bug
     if (event->type() == QEvent::GraphicsSceneMouseRelease && event->scenePos().y() > 70 &&
-        isFeedbackEnabled()) {
-        // todo: sound disabling doesn't work in orbit yet so don't do feedback on release
-        // needs to be enabled when orbit support is done
-        //mControlsFeedback.setModalities(HbFeedback::Tactile);
-        //mControlsFeedback.play();
+        isFeedbackEnabled()) {        
+        mControlsFeedback.setModalities(HbFeedback::Tactile);
+        mControlsFeedback.play();
         toggleControls();
         event->accept();
     }