equal
deleted
inserted
replaced
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. |
263 |
266 |
264 if (mHideControlsTimeout.isActive()) { |
267 if (mHideControlsTimeout.isActive()) { |
265 mHideControlsTimeout.stop(); |
268 mHideControlsTimeout.stop(); |
266 } |
269 } |
267 |
270 |
268 // Hide title bar and status bar. |
271 setTitleBarVisible(false); |
269 //!@todo: View flags property is missing from HbView, so can't set these in DocML. |
272 setStatusBarVisible(false); |
270 HbView::HbViewFlags flags(HbView::ViewTitleBarTransparent |
|
271 | HbView::ViewTitleBarFloating |
|
272 | HbView::ViewTitleBarHidden |
|
273 | HbView::ViewStatusBarTransparent |
|
274 | HbView::ViewStatusBarFloating |
|
275 | HbView::ViewStatusBarHidden); |
|
276 setViewFlags(flags); |
|
277 //!@todo: Once the flags are defined in DocML, we can just use these convenience functions |
|
278 // to hide the title bar and status bar here. |
|
279 //setTitleBarVisible(false); |
|
280 //setStatusBarVisible(false); |
|
281 |
273 |
282 hideZoom(); |
274 hideZoom(); |
283 |
275 |
284 hideToolbar(); |
276 hideToolbar(); |
285 |
277 |
453 */ |
445 */ |
454 void CxuiView::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) |
446 void CxuiView::mouseReleaseEvent(QGraphicsSceneMouseEvent *event) |
455 { |
447 { |
456 //! @todo temporary workaround for title bar mouse event handling bug |
448 //! @todo temporary workaround for title bar mouse event handling bug |
457 if (event->type() == QEvent::GraphicsSceneMouseRelease && event->scenePos().y() > 70 && |
449 if (event->type() == QEvent::GraphicsSceneMouseRelease && event->scenePos().y() > 70 && |
458 isFeedbackEnabled()) { |
450 isFeedbackEnabled()) { |
459 // todo: sound disabling doesn't work in orbit yet so don't do feedback on release |
451 mControlsFeedback.setModalities(HbFeedback::Tactile); |
460 // needs to be enabled when orbit support is done |
452 mControlsFeedback.play(); |
461 //mControlsFeedback.setModalities(HbFeedback::Tactile); |
|
462 //mControlsFeedback.play(); |
|
463 toggleControls(); |
453 toggleControls(); |
464 event->accept(); |
454 event->accept(); |
465 } |
455 } |
466 } |
456 } |
467 |
457 |