[qml] Qt5.15: Update syntax for slots

Slots now need to be written as function; the previous syntax is
deprecated.
This commit is contained in:
Candice Bentéjac 2023-01-13 17:07:59 +01:00
parent 62ba08447d
commit 8c494198e0
9 changed files with 21 additions and 19 deletions

View file

@ -179,7 +179,7 @@ Panel {
// Update grid current item when selected view changes
Connections {
target: _reconstruction
onSelectedViewIdChanged: {
function onSelectedViewIdChanged() {
if (_reconstruction.selectedViewId > -1) {
grid.updateCurrentIndexFromSelectionViewId()
}

View file

@ -141,7 +141,7 @@ RowLayout {
Connections {
target: attribute
onValueChanged: combo.currentIndex = combo.find(attribute.value)
function onValueChanged() { combo.currentIndex = combo.find(attribute.value) }
}
}
}