diff options
author | Janne Anttila <janne.anttila@digia.com> | 2009-09-02 08:49:03 (GMT) |
---|---|---|
committer | Janne Anttila <janne.anttila@digia.com> | 2009-09-02 08:49:03 (GMT) |
commit | cd84cbc19df1f6ea02119ca89107645803e9c630 (patch) | |
tree | 4fe1b6eaafc116d5391819c76e3f96d7922f5de1 /doc/src/snippets/code/src_gui_image_qbitmap.cpp | |
parent | c0358c891d91b7fe78f439eefc706d87099e2634 (diff) | |
download | Qt-cd84cbc19df1f6ea02119ca89107645803e9c630.zip Qt-cd84cbc19df1f6ea02119ca89107645803e9c630.tar.gz Qt-cd84cbc19df1f6ea02119ca89107645803e9c630.tar.bz2 |
Fixes pointer events when using popups and/or modal dialogs.
This commit also adds initial support for fading behind modal dialogs.
Avoid unnecessary local/global capturing since when having global
capture enabled we cannot for example tap icons on statusbar.
The logic how pointer events for popups and modal dialogs shall work:
- Modal dialogs:
* Shall not close when outside dlg is clicked
* Shall not allow usage or underlying control with mouse
* Achieved with SetGloballyCapturing and SetPointerCapture
in enterModal_sys / leaveModal_sys
- Popups
* Shall close when the outside popup is clicked
* Achieved with enabling the SetPointerCapture only for topmost
popup and canceling it for all underlyuing ones.
* In addition long tap timer needs to be canceled for underlying
widgets when opening a pop-up. Otherwise theu get longtap event
whcih causes unexpected behaviour.
TODOs:
- Fading does not work correctly when more than two levels of modal
dialogs are opened.
- Fading does not work correctly when switching away from app and
back to it with fast swap window (using menu works)
- Check if fading should be implemented with MAknFadedComponent and
TAknPopupFader, in order to support cross-application fading
- Should popups closes when application loses the focus?
Reviewed-by: Janne Koskinen
Diffstat (limited to 'doc/src/snippets/code/src_gui_image_qbitmap.cpp')
0 files changed, 0 insertions, 0 deletions