aboutsummaryrefslogtreecommitdiffstats
path: root/LICENSE.GPL3
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-07-05 12:53:01 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-07-11 04:40:06 +0000
commit286f14f1e29e7f4e2db4517d087dd5c92606f971 (patch)
treee52791e53ddda3e0dab82ffa8dc85832475beeb8 /LICENSE.GPL3
parent17ded188f76c0e5272763d342490dcb6dda40c80 (diff)
Add QQuickItem::ItemEnabledHasChanged
The itemChange() method has been very useful for Qt Quick Controls 2 to efficiently react to various item changes, but a notification for the enabled state was missing, so it always had to be handled as a special case using signals and slots. This change allows QQC2 to handle enabled state changes the same way e.g. visibility changes are handled. It's also nice to be able to update a control's internal state before the actual notifier signal is emitted. [ChangeLog][QtQuick][QQuickItem] Added a ItemEnabledHasChanged value to the ItemChange enum. QQuickItem::itemChange(ItemEnabledHasChanged) gets called when the item's effective enabled state has changed. The new enabled state is stored in ItemChangeData::boolValue. Change-Id: Iae96ec21f2b94f453632282473decd1c66097a75 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> Reviewed-by: Robin Burchell <robin.burchell@crimson.no>
Diffstat (limited to 'LICENSE.GPL3')
0 files changed, 0 insertions, 0 deletions