1
0
Fork 0

Avoid use of Connections.enabled for Qt < 5.7 compat

This commit is contained in:
James Turner 2018-03-18 16:25:48 +00:00
parent 7339e261e9
commit eaf89ab23b

View file

@ -33,10 +33,13 @@ Item {
}
Connections {
target: _config
// only invoke apply if 'option' is set, otherwise we assume
// there is specialised apply code
enabled: root.option != ""
target: root.option != "" ? _config : null
// this requires Qt 5.7, so we simulate it
// enabled: root.option != ""
onCollect: apply();
}