qt5base-lts/tests/auto/widgets/graphicsview
Andreas Aardal Hanssen bfb569b6e7 Ensure subfocus is not reset to 0 when hiding a panel.
When hiding any widget that is not a panel, it is correct to clear
subfocus. In case clearFocus() has been called, the result is that
focusItem() / focusWidget() points to 0, which is correct. Upon
reactivation, nothing gains input focus. When changing focus, the
following setSubFocus() call will ensure subfocus points to the new
widget.

When hiding a panel, however, it's essential that subfocus within
that panel is not cleared, otherwise, when re-showing the panel,
nothing will have focus, whereas the expected behavior is that focus
is restored to the last item that had focus, i.e., the focusItem()
a.k.a. subfocus widget.

Task-number: QTBUG-22256
Change-Id: I84d849a505764e074e1369fef923cef1ad5c0b1e
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2012-11-26 21:23:15 +01:00
..
qgraphicsanchorlayout Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicsanchorlayout1 Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicseffectsource Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicsgridlayout Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicsitem Ensure subfocus is not reset to 0 when hiding a panel. 2012-11-26 21:23:15 +01:00
qgraphicsitemanimation Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicslayout Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicslayoutitem Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicslinearlayout Remove Cleanlooks and Plastique 2012-10-22 19:36:43 +02:00
qgraphicsobject Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicspixmapitem Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicspolygonitem Make QPen default to 1-width non-cosmetic. 2012-10-22 19:36:43 +02:00
qgraphicsproxywidget Made QMacStyle internal 2012-11-23 15:18:15 +01:00
qgraphicsscene Make QPen default to 1-width non-cosmetic. 2012-10-22 19:36:43 +02:00
qgraphicssceneindex Make QPen default to 1-width non-cosmetic. 2012-10-22 19:36:43 +02:00
qgraphicstransform Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qgraphicsview Fix: don't override the new non-cosmetic default pen in qwidget 2012-10-25 14:10:04 +02:00
qgraphicswidget Made QFusionStyle internal 2012-11-21 11:03:48 +01:00
graphicsview.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00