summaryrefslogtreecommitdiffstats
path: root/util/unicode
diff options
context:
space:
mode:
authorAndreas Aardal Hanssen <andreas@hanssen.name>2012-12-11 21:04:12 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-17 19:37:34 +0100
commit533105cadfde6d0113ea25481b9723e2b06de8e4 (patch)
treebd6d60a1b4731056af621676a315842b2d92b764 /util/unicode
parentaf8a6cdd87c27b4ed18d5e6238757ba8885f630d (diff)
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>
Diffstat (limited to 'util/unicode')
0 files changed, 0 insertions, 0 deletions