diff options
author | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-08-31 14:03:34 (GMT) |
---|---|---|
committer | Andreas Aardal Hanssen <andreas.aardal.hanssen@nokia.com> | 2009-08-31 14:14:48 (GMT) |
commit | 46624cfb90986e1977a539d279516bd5ade3675f (patch) | |
tree | 2454b0c367d126940e6b4d1020d4b9816a50e44d /tests/auto/qdial/qdial.pro | |
parent | 62ca28a96d200fe55ed5bc2d0d1df327ab44c97e (diff) | |
download | Qt-46624cfb90986e1977a539d279516bd5ade3675f.zip Qt-46624cfb90986e1977a539d279516bd5ade3675f.tar.gz Qt-46624cfb90986e1977a539d279516bd5ade3675f.tar.bz2 |
Add auto-activation on show/hide and setParentItem().
If you show a child panel of an active panel, the child will now be
activated and the parent deactivated. Hiding the child panel will
reactive the parent. If the parent is 0, no other panel is activated.
Reparenting a panel onto an active panel will also activate the (new)
child. Reparenting away does not affect activation in any way.
This change also fixes QGraphicsWidget::isActiveWindow(), which returned
true for all toplevel widgets (not in a panel/window). This is wrong;
either the non-panel items are active, or a panel is active. The
correct behavior is the same as calling QGraphicsItem::isActive(). Fixed
the autotests (which wrongly tested that both a panel and a non-panel
item were active at the same time).
This change causes popups (QGraphics{Proxy,}Widget) to deactivate the
parent widget. On the positive side this activates the popup, and ensures
that the parent regains proper focus when the popup is closed. However
it also means the parent widget is inactive while the popup is open,
which (e.g.) causes editable combobox line edit cursors to stop blinking.
This is to be fixed soon, but the fix is a bit big so we'll do that later.
Autotests included.
Reviewed-by: Brad
Diffstat (limited to 'tests/auto/qdial/qdial.pro')
0 files changed, 0 insertions, 0 deletions