Avoid use of Connections.enabled for Qt < 5.7 compat
This commit is contained in:
parent
7339e261e9
commit
eaf89ab23b
1 changed files with 5 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue