diff options
Diffstat (limited to 'examples')
5 files changed, 10 insertions, 7 deletions
diff --git a/examples/quickcontrols/controls/uiforms/qml/History.qml b/examples/quickcontrols/controls/uiforms/qml/History.qml index be7a5808..031f35be 100644 --- a/examples/quickcontrols/controls/uiforms/qml/History.qml +++ b/examples/quickcontrols/controls/uiforms/qml/History.qml @@ -79,7 +79,7 @@ HistoryForm { Connections { target: CustomerModel.selection - onSelectionChanged: form.readData() + function onSelectionChanged() { form.readData() } } Component.onCompleted: readData() diff --git a/examples/quickcontrols/controls/uiforms/qml/Notes.qml b/examples/quickcontrols/controls/uiforms/qml/Notes.qml index c7f326f7..ae89482f 100644 --- a/examples/quickcontrols/controls/uiforms/qml/Notes.qml +++ b/examples/quickcontrols/controls/uiforms/qml/Notes.qml @@ -79,7 +79,7 @@ NotesForm { Connections { target: CustomerModel.selection - onSelectionChanged: form.readData() + function onSelectionChanged() { form.readData() } } Component.onCompleted: readData() diff --git a/examples/quickcontrols/controls/uiforms/qml/Settings.qml b/examples/quickcontrols/controls/uiforms/qml/Settings.qml index eefab2a1..1c3741ac 100644 --- a/examples/quickcontrols/controls/uiforms/qml/Settings.qml +++ b/examples/quickcontrols/controls/uiforms/qml/Settings.qml @@ -99,7 +99,7 @@ SettingsForm { Connections { target: CustomerModel.selection - onSelectionChanged: form.readData() + function onSelectionChanged() { form.readData() } } Component.onCompleted: readData() diff --git a/examples/quickcontrols/extras/gallery/qml/CircularGaugeView.qml b/examples/quickcontrols/extras/gallery/qml/CircularGaugeView.qml index bfb7a0c7..63e51355 100644 --- a/examples/quickcontrols/extras/gallery/qml/CircularGaugeView.qml +++ b/examples/quickcontrols/extras/gallery/qml/CircularGaugeView.qml @@ -115,9 +115,9 @@ ControlView { // Called to update the style after the user has edited a property. Connections { target: customizerItem - onMinimumValueAngleChanged: __style.minimumValueAngle = customizerItem.minimumValueAngle - onMaximumValueAngleChanged: __style.maximumValueAngle = customizerItem.maximumValueAngle - onLabelStepSizeChanged: __style.tickmarkStepSize = __style.labelStepSize = customizerItem.labelStepSize + function onMinimumValueAngleChanged() { __style.minimumValueAngle = customizerItem.minimumValueAngle } + function onMaximumValueAngleChanged() { __style.maximumValueAngle = customizerItem.maximumValueAngle } + function onLabelStepSizeChanged() { __style.tickmarkStepSize = __style.labelStepSize = customizerItem.labelStepSize } } Behavior on value { diff --git a/examples/quickcontrols/extras/gallery/qml/gallery.qml b/examples/quickcontrols/extras/gallery/qml/gallery.qml index 0f4d2b71..c7d0a194 100644 --- a/examples/quickcontrols/extras/gallery/qml/gallery.qml +++ b/examples/quickcontrols/extras/gallery/qml/gallery.qml @@ -290,7 +290,10 @@ Window { Connections { target: recordingFlashTimer - onTriggered: if (name == "Recording") indicator.active = !indicator.active + function onTriggered() { + if (name == "Recording") + indicator.active = !indicator.active + } } } ControlLabel { |