Configuration: Replace old style declarative Binding and an oddly specific property
Reason for the change
- The standardButton() method is not observable, so it does not matter if we use it for a property or in a one-shot onCompleted hook.
- Properties should be using Templates version for maximum flexibility. The NOTE on the property technically might be right (for some style implementations), but it is completely irrelevant, as the only thing we care about here is the Item::enabled property.
- The onCompleted hook is a well established idiom for customizing standard buttons in dialog button boxes.
See also: https://bugreports.qt.io/browse/QTBUG-120189
CCBUG: 487904
Test plan
- Run Elisa
- Open Configuration window
- Make sure the Apply button is disabled
- Change some preferences
- Make sure the Apply button became enabled
- Revert your changes
- Make sure the Apply button returned back to the disabled state
Edited by ivan tkachenko