qt5base-lts/tests/auto/widgets
Andreas Aardal Hanssen 533105cadf Deactivating an inactive panel no longer causes unwanted deactivation.
QGraphicsItem::setActive() is by design not guarded against calls that
do not change the current activation state of the item (e.g., calling
setActive(true) on an active item or calling setActive(false) on an
inactive item). This is to ensure that it's possible to set explicit
activation state on items, either before they are added to a scene, or
while the scene itself is inactive.

Before this fix, calling setActive(false) on a panel item that is not
currently active would by accident clear activation from any other
panel that might have focus. After this fix, activation is only cleared
if the item setActive() was called on itself is the active panel, or
is the panel that will regain activation once the scene is reactivated.

Task-number: QTBUG-28544
Change-Id: Ic4752f1e4400f9a0660bc968834747610212bb52
Reviewed-by: Bjørn Erik Nilsen <post@bjoernen.com>
Reviewed-by: Andreas Aardal Hanssen <andreas@hanssen.name>
Reviewed-by: Yoann Lopes <yoann.lopes@digia.com>
2012-12-17 19:37:34 +01:00
..
dialogs Made QMacStyle internal 2012-11-23 15:18:15 +01:00
effects Make QPen default to 1-width non-cosmetic. 2012-10-22 19:36:43 +02:00
graphicsview Deactivating an inactive panel no longer causes unwanted deactivation. 2012-12-17 19:37:34 +01:00
itemviews tst_qlistview: remove redundant include 2012-11-23 15:15:27 +01:00
kernel [QTBUG-27420] Make Q{Box,Grid,Form}Layout::takeAt() unparent a nested layout 2012-12-02 00:23:14 +01:00
styles Style auto tests: kill QWindowsStyle dependencies 2012-11-28 20:54:39 +01:00
util normalise signal/slot signatures [QtWidgets tests] 2012-10-19 00:44:54 +02:00
widgets tst_QDialogButtonBox: fix typos 2012-12-13 10:19:20 +01:00
widgets.pro Moved tests into integrationtests/ and widgets/ 2011-10-20 19:45:41 +02:00