diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-07-05 12:53:01 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-07-11 04:40:06 +0000 |
commit | 286f14f1e29e7f4e2db4517d087dd5c92606f971 (patch) | |
tree | e52791e53ddda3e0dab82ffa8dc85832475beeb8 /src/qml | |
parent | 17ded188f76c0e5272763d342490dcb6dda40c80 (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 'src/qml')
0 files changed, 0 insertions, 0 deletions